Skip to content

Commit 4c52064

Browse files
committed
Merge branch 'master' into skip_existing
2 parents 46d8cf7 + a351abe commit 4c52064

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828

2929
# Black formatting
3030
- repo: https://github.com/psf/black
31-
rev: 20.8b1
31+
rev: 22.3.0
3232
hooks:
3333
- id: black
3434

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
## Module usage
1010

1111
```
12-
import qfieldcloud_sdk
1312
import requests
13+
from qfieldcloud_sdk import sdk
1414
15-
client = qfieldcloud_sdk.Client(
15+
client = sdk.Client(
1616
url="https://app.qfield.cloud/api/v1/",
1717
username="user1",
1818
password="pass1",
1919
)
2020
2121
try:
22-
projects = client.projects()
23-
except requests.HttpRequest:
22+
projects = client.list_projects()
23+
except requests.exceptions.RequestException:
2424
print("Oops!")
2525
```
2626

0 commit comments

Comments
 (0)