From 3979a8088c3661f4ad3c8f6918af12337d8ab732 Mon Sep 17 00:00:00 2001 From: Johnny Sequeira Date: Sat, 31 Aug 2024 09:32:39 -0600 Subject: [PATCH] Adding modifications and fixing --- qfieldcloud_sdk/sdk.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qfieldcloud_sdk/sdk.py b/qfieldcloud_sdk/sdk.py index 6759b74..91806dd 100644 --- a/qfieldcloud_sdk/sdk.py +++ b/qfieldcloud_sdk/sdk.py @@ -132,7 +132,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: @@ -183,6 +183,21 @@ def list_projects( def list_remote_files( self, project_id: str, skip_metadata: bool = True ) -> List[Dict[str, Any]]: +<<<<<<< HEAD +======= + """Lists the files available in the specified project. + + Args: + project_id (str): The ID of the project to list files for. + skip_metadata (bool): Whether to skip fetching metadata for the files. Defaults to True. + + Returns: + List[Dict[str, Any]]: A list of dictionaries containing file details. + + Example: + client.list_remote_files("project_id", True) + """ +>>>>>>> f2217c8 (Adding suggestions) params = {} if skip_metadata: