diff options
Diffstat (limited to 'matweb/rest_api.py')
| -rw-r--r-- | matweb/rest_api.py | 2 |
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, |
