Skip to content

Commit 55dacf3

Browse files
committed
Used new function download_summary to download file summary
1 parent 5690899 commit 55dacf3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sample-extractors/test-file-extractor/test-file-extractor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ def process_message(self, connector, host, secret_key, resource, parameters):
5454
else:
5555
logger.error("Error in uploading/downloading file metadata")
5656

57-
# Download info of file
58-
file = pyclowder.files.download_info(connector, host, secret_key, file_id)
59-
logger.info("File info: %s", file)
60-
if file_id == file[0]['id']:
61-
logger.info("Success in downloading file info")
57+
# Download file summary
58+
file = pyclowder.files.download_summary(connector, host, secret_key, file_id)
59+
logger.info("File summary: %s", file)
60+
if file_id == file['id']:
61+
logger.info("Success in downloading file summary")
6262
else:
63-
logger.error("Error in downloading file info")
63+
logger.error("Error in downloading file summary")
6464

6565

6666

0 commit comments

Comments
 (0)