summaryrefslogtreecommitdiff
path: root/matweb/rest_api.py
diff options
context:
space:
mode:
authorJan Friedli2020-05-15 14:38:13 +0200
committerJan Friedli2020-05-15 14:38:13 +0200
commit83618ff529dbd8e8b89a51e54a7d81eab7dd823b (patch)
treeb5b88ec536a2e3928cc74038422935fe3abb3680 /matweb/rest_api.py
parente75d9a7de5a083d983d0d682a48752f48df71eb2 (diff)
added new property which indicates the remaining download time in secs
Diffstat (limited to 'matweb/rest_api.py')
-rw-r--r--matweb/rest_api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/matweb/rest_api.py b/matweb/rest_api.py
index a07d2d2..f893fca 100644
--- a/matweb/rest_api.py
+++ b/matweb/rest_api.py
@@ -48,6 +48,7 @@ class APIUpload(Resource):
48 48
49 key, secret, meta_after, output_filename = utils.cleanup(parser, filepath, self.upload_folder) 49 key, secret, meta_after, output_filename = utils.cleanup(parser, filepath, self.upload_folder)
50 return utils.return_file_created_response( 50 return utils.return_file_created_response(
51 utils.get_file_removal_max_age_sec(),
51 output_filename, 52 output_filename,
52 mime, 53 mime,
53 key, 54 key,
@@ -133,6 +134,7 @@ class APIBulkDownloadCreator(Resource):
133 abort(500, message='Unable to clean %s' % mime) 134 abort(500, message='Unable to clean %s' % mime)
134 key, secret, meta_after, output_filename = utils.cleanup(parser, zip_path, self.upload_folder) 135 key, secret, meta_after, output_filename = utils.cleanup(parser, zip_path, self.upload_folder)
135 return { 136 return {
137 'inactive_after_sec': utils.get_file_removal_max_age_sec(),
136 'output_filename': output_filename, 138 'output_filename': output_filename,
137 'mime': mime, 139 'mime': mime,
138 'key': key, 140 'key': key,