Skip to content

Commit

Permalink
Adding modifications and fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
SeqLaz committed Aug 31, 2024
1 parent 5500807 commit 3979a80
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion qfieldcloud_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3979a80

Please sign in to comment.