diff --git a/configuration/development.json b/configuration/development.json index efafeea..6983464 100644 --- a/configuration/development.json +++ b/configuration/development.json @@ -1,5 +1,6 @@ { "appConfig": { - "DEBUG": true + "DEBUG": true, + "DOWNLOADS_DIR": "../static/downloads" } -} \ No newline at end of file +} diff --git a/src/blueprints/v1/public/archive.py b/src/blueprints/v1/public/archive.py index 71fd2e7..28bcc00 100644 --- a/src/blueprints/v1/public/archive.py +++ b/src/blueprints/v1/public/archive.py @@ -43,6 +43,11 @@ def get(): @archive.route("/", methods=["POST"]) def post(): """Generate a new Prompt archive spreadsheet.""" + # Don't do anything if an archive has already been made + latest_archive = get() + if isinstance(latest_archive, dict): + return helpers.make_response(304) + database.archive.make( { "base_name": BASE_FILE_NAME,