From 49cde114a608cd2e0f6bc3122dab0e72a82f9807 Mon Sep 17 00:00:00 2001 From: Agah Date: Sun, 18 Jun 2023 01:41:17 -0400 Subject: [PATCH] Typo etc --- api/neurolibre_preprint_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/neurolibre_preprint_api.py b/api/neurolibre_preprint_api.py index 548566c..8c32f40 100644 --- a/api/neurolibre_preprint_api.py +++ b/api/neurolibre_preprint_api.py @@ -122,7 +122,7 @@ def summary_pdf_sync_post(user,id): # In case where both exist, this should be the one download_url = url_master else: - result = make_response(jsonify(f"A PDF could not be found for review ID {issue_id}. Note that it is only available after `recommend-accept`."),404) + result = make_response(f"A PDF could not be found for review ID {issue_id}. Note that it is only available after `recommend-accept`.",404) result.mimetype = "text/plain" return result @@ -136,9 +136,9 @@ def summary_pdf_sync_post(user,id): os.remove(file_path) with open(file_path, "wb") as file: file.write(response.content) - result = make_response(jsonify(f"Synced the summary PDF from the [source]({download_url}), should be now avaiable at https://preprint.neurolibre.org/10.55458/neurolibre.{issue_id:05d}.pdf"),200) + result = make_response(f":seedling::recycle::page_facing_up: Synced the summary PDF from the [source]({download_url}), should be now available at https://preprint.neurolibre.org/10.55458/neurolibre.{issue_id:05d}.pdf?no-cache",200) else: - result = make_response(jsonify(f"Summary PDF was available at the [source]({download_url}), but could not download it to our servers."),500) + result = make_response(f"Summary PDF was available at the [source]({download_url}), but could not download it to our servers.",500) result.mimetype = "text/plain" return result