From 83618ff529dbd8e8b89a51e54a7d81eab7dd823b Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Fri, 15 May 2020 14:38:13 +0200 Subject: added new property which indicates the remaining download time in secs --- matweb/rest_api.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'matweb/rest_api.py') 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): key, secret, meta_after, output_filename = utils.cleanup(parser, filepath, self.upload_folder) return utils.return_file_created_response( + utils.get_file_removal_max_age_sec(), output_filename, mime, key, @@ -133,6 +134,7 @@ class APIBulkDownloadCreator(Resource): abort(500, message='Unable to clean %s' % mime) key, secret, meta_after, output_filename = utils.cleanup(parser, zip_path, self.upload_folder) return { + 'inactive_after_sec': utils.get_file_removal_max_age_sec(), 'output_filename': output_filename, 'mime': mime, 'key': key, -- cgit v1.3