aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-19 16:44:35 +0300
committerBonfaceKilz2021-10-25 14:00:14 +0300
commita5d24f3885239c4fe15fd6d5dd070ec28403473d (patch)
tree81a4391c65a386ac41a1f8a8a500a895577efa5b
parent803f4c47b070ac541e9d12c76101c8c1ac267640 (diff)
downloadgenenetwork2-a5d24f3885239c4fe15fd6d5dd070ec28403473d.tar.gz
resource_manager: Use := to store embellished resource dict
-rw-r--r--wqflask/wqflask/resource_manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/resource_manager.py b/wqflask/wqflask/resource_manager.py
index e0d2105f..94c9ba4f 100644
--- a/wqflask/wqflask/resource_manager.py
+++ b/wqflask/wqflask/resource_manager.py
@@ -150,8 +150,9 @@ def view_resource(resource_id: str):
return render_template(
"admin/manage_resource.html",
- resource_info=(embellished_resource:=add_extra_resource_metadata(
+ resource_info=(embellished_resource := add_extra_resource_metadata(
conn=redis_conn,
+ resource_id=resource_id,
resource=json.loads(resource))),
access_role=get_user_access_roles(
conn=redis_conn,