diff --git a/qfieldcloud_sdk/sdk.py b/qfieldcloud_sdk/sdk.py index 71f1d2d..6e75cd2 100644 --- a/qfieldcloud_sdk/sdk.py +++ b/qfieldcloud_sdk/sdk.py @@ -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: @@ -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 = {} @@ -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