Skip to content

Commit 3979a80

Browse files
committed
Adding modifications and fixing
1 parent 5500807 commit 3979a80

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

qfieldcloud_sdk/sdk.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(
132132
"Cannot create a new QFieldCloud client without a url passed in the constructor or as environment variable QFIELDCLOUD_URL"
133133
)
134134

135-
def login(self, username: str, password: str) -> Dict:
135+
def login(self, username: str, password: str) -> Dict[str, Any]:
136136
"""Logins with the provided credentials.
137137
138138
Args:
@@ -183,6 +183,21 @@ def list_projects(
183183
def list_remote_files(
184184
self, project_id: str, skip_metadata: bool = True
185185
) -> List[Dict[str, Any]]:
186+
<<<<<<< HEAD
187+
=======
188+
"""Lists the files available in the specified project.
189+
190+
Args:
191+
project_id (str): The ID of the project to list files for.
192+
skip_metadata (bool): Whether to skip fetching metadata for the files. Defaults to True.
193+
194+
Returns:
195+
List[Dict[str, Any]]: A list of dictionaries containing file details.
196+
197+
Example:
198+
client.list_remote_files("project_id", True)
199+
"""
200+
>>>>>>> f2217c8 (Adding suggestions)
186201
params = {}
187202

188203
if skip_metadata:

0 commit comments

Comments
 (0)