From fb28eb99ea07e4696bbc95b749a41036b5544add Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 23 Jun 2023 22:53:25 +0200 Subject: [PATCH] Also update element lookup cache on mass extract collections with errors --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index 32c9b21..a2d8f1b 100644 --- a/server/app.py +++ b/server/app.py @@ -939,6 +939,8 @@ def api_collection_extract_mass() -> ResponseReturnValue: "error": gen_api_error(e), } ) + if coll_ids: + update_element_lookup_cache(coll_ids) if errors: return { "status": False, @@ -948,8 +950,6 @@ def api_collection_extract_mass() -> ResponseReturnValue: "data": errors, }, }, 501 - if coll_ids: - update_element_lookup_cache(coll_ids) if coll_ids and environ_bool(data.get("redirect_to_overview", False)): return redirect( "/collection/overview?ids=" + ",".join(str(i) for i in coll_ids)