This commit is contained in:
Kikimanox
2022-08-29 23:36:07 +02:00
parent 5bdba94035
commit dfe2f08b84
@@ -164,6 +164,8 @@ def oss_besedilo_po_id_get(file_id): # noqa: E501
:rtype: str :rtype: str
""" """
try: try:
f = util.get_original_file_path_by_id(file_id)
print(f) # for debugging purposes on the server, delete this later
return send_file(util.get_original_file_path_by_id(file_id), download_name=f'{file_id}.xml') return send_file(util.get_original_file_path_by_id(file_id), download_name=f'{file_id}.xml')
except FileNotFoundError as e: except FileNotFoundError as e:
return "The file with this ID doesn't exist.", 404 return "The file with this ID doesn't exist.", 404