allow regeneration

... only with curl
refs #27
This commit is contained in:
boyska 2021-08-25 00:00:10 +02:00
parent d43e655181
commit ea51ad92d6

View file

@ -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()