Skip to content

Commit

Permalink
Example docs adjustments and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Oct 4, 2024
1 parent 6c5f53c commit 7d5f64a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions qfieldcloud_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ def patch_project(
Returns:
Dict[str, Any]: the updated project
Example:
```python
client.patch_project(description="New Description")
```
"""
project_data: dict[str, Any] = {}

Expand Down Expand Up @@ -691,12 +696,12 @@ def list_jobs(
A list of dictionaries representing the jobs.
Example:
```python
client.list_jobs(
project_id="123e4567-e89b-12d3-a456-426614174000",
job_type=JobTypes.PACKAGE
)
```
```python
client.list_jobs(
project_id="123e4567-e89b-12d3-a456-426614174000",
job_type=JobTypes.PACKAGE
)
```
"""
payload = self._request_json(
"GET",
Expand Down Expand Up @@ -1074,6 +1079,7 @@ def download_file(
remote_filename="trees.gpkg",
show_progress=True
)
```
"""

if remote_etag and local_filename.exists():
Expand Down

0 comments on commit 7d5f64a

Please sign in to comment.