Add file_format to exports table

This commit is contained in:
JonnyWong16 2020-08-03 14:07:22 -07:00
parent 5468676811
commit de2e2ee962
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 38 additions and 18 deletions

View file

@ -6480,10 +6480,10 @@ class WebInterface(object):
@cherrypy.tools.json_out()
@requireAuth(member_of("admin"))
@addtoapi()
def export_metadata(self, section_id=None, rating_key=None, output_format='json', **kwargs):
def export_metadata(self, section_id=None, rating_key=None, file_format='json', **kwargs):
threading.Thread(target=exporter.export,
kwargs={'section_id': section_id,
'rating_key': rating_key,
'output_format': output_format}).start()
'file_format': file_format}).start()
return {'result': 'success',
'message': 'Metadata export has started. Check the logs to monitor any problems.'}