File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,17 +324,11 @@ def get_project_seed_xlsform(
324324
325325@cli .command ()
326326@click .argument ("project_id" )
327- @click .option (
328- "--skip-metadata/--no-skip-metadata" ,
329- "skip_metadata" ,
330- default = True ,
331- help = "Skip requesting for additional metadata (currently the `sha256` checksum) for each version. Default: --skip-metadata" ,
332- )
333327@click .pass_context
334- def list_files (ctx : Context , project_id , skip_metadata ):
328+ def list_files (ctx : Context , project_id ):
335329 """List QFieldCloud project files."""
336330
337- files = ctx .obj ["client" ].list_remote_files (project_id , skip_metadata )
331+ files = ctx .obj ["client" ].list_remote_files (project_id )
338332
339333 if ctx .obj ["format_json" ]:
340334 print_json (files )
Original file line number Diff line number Diff line change @@ -523,26 +523,23 @@ def _get_filename_from_content_disposition(
523523 return cast (Optional [str ], message .get_filename ())
524524
525525 def list_remote_files (
526- self , project_id : str , skip_metadata : bool = True
526+ self ,
527+ project_id : str ,
527528 ) -> List [Dict [str , Any ]]:
528529 """List project files.
529530
530531 Args:
531532 project_id: Project ID.
532- skip_metadata: Whether to skip fetching metadata for the files. Defaults to True.
533533
534534 Returns:
535535 A list of file details.
536536
537537 Example:
538538 ```python
539- client.list_remote_files("123e4567-e89b-12d3-a456-426614174000", False )
539+ client.list_remote_files("123e4567-e89b-12d3-a456-426614174000")
540540 ```
541541 """
542- params = {}
543-
544- if skip_metadata :
545- params ["skip_metadata" ] = "1"
542+ params : Dict [str , str ] = {}
546543
547544 resp = self ._request ("GET" , f"files/{ project_id } " , params = params )
548545 remote_files = resp .json ()
You can’t perform that action at this time.
0 commit comments