fix to_url instance

This commit is contained in:
Fabian Dill 2020-10-29 01:51:30 +01:00
parent 99dc16895e
commit 726406a75e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def generate_api():
commit()
return {"text": f"Generation of seed {gen.id} started successfully.",
"detail": gen.id,
"encoded": app.url_map.converters["suuid"].to_url(gen.id),
"encoded": app.url_map.converters["suuid"].to_url(None, gen.id),
"wait_api_url": url_for(wait_seed_api, seed=gen.id),
"url": url_for(wait_seed, seed=gen.id)}, 201
except Exception as e: