From a5d24f3885239c4fe15fd6d5dd070ec28403473d Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 19 Oct 2021 16:44:35 +0300 Subject: resource_manager: Use := to store embellished resource dict --- wqflask/wqflask/resource_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3