Skip to content

Commit

Permalink
Adding suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
SeqLaz committed Aug 31, 2024
1 parent 1629aee commit f2217c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qfieldcloud_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __init__(
"Cannot create a new QFieldCloud client without a url passed in the constructor or as environment variable QFIELDCLOUD_URL"
)

def login(self, username: str, password: str) -> Dict:
def login(self, username: str, password: str) -> Dict[str, Any]:
"""Logins with the provided credentials.
Args:
Expand Down Expand Up @@ -313,9 +313,6 @@ def list_remote_files(
Example:
client.list_remote_files("project_id", True)
Todo:
* Remove this temporary decoration with `etag` key
"""
params = {}

Expand All @@ -324,6 +321,7 @@ def list_remote_files(

resp = self._request("GET", f"files/{project_id}", params=params)
remote_files = resp.json()
# TODO remove this temporary decoration with `etag` key
remote_files = list(map(lambda f: {"etag": f["md5sum"], **f}, remote_files))

return remote_files
Expand Down

0 comments on commit f2217c8

Please sign in to comment.