From ea51ad92d690bddee36bd15003ac4bc306ed2b89 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 25 Aug 2021 00:00:10 +0200 Subject: [PATCH] allow regeneration ... only with curl refs #27 --- techrec/server.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/techrec/server.py b/techrec/server.py index b4f3819..9bcabf0 100644 --- a/techrec/server.py +++ b/techrec/server.py @@ -147,12 +147,6 @@ async def generate(recid: int, response: Response, background_tasks: BackgroundT "message": "The file has already been generated at %s" % rec.filename, "rec": rec, } - if rec.filename is not None: - return { - "status": "ready", - "message": "Generating...", - "rec": rec, - } if ( get_config()["FORGE_MAX_DURATION"] > 0 and (rec.endtime - rec.starttime).total_seconds()