diff options
author | Munyoki Kilyungi | 2024-02-19 23:13:11 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | e6bb1f59b69d2466195537992c338274fa475c52 (patch) | |
tree | b8638e1213dfe688aef58fec1e661d78f8a41d1a /gn2/wqflask | |
parent | 2aba274fc7483e7762138e3a6e75f79c59644c18 (diff) | |
download | genenetwork2-e6bb1f59b69d2466195537992c338274fa475c52.tar.gz |
Remove unused imports.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/decorators.py | 2 | ||||
-rw-r--r-- | gn2/wqflask/resource_manager.py | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/gn2/wqflask/decorators.py b/gn2/wqflask/decorators.py index d2224d1a..848f03ec 100644 --- a/gn2/wqflask/decorators.py +++ b/gn2/wqflask/decorators.py @@ -5,11 +5,9 @@ from functools import wraps from urllib.parse import urljoin from typing import Dict, Callable -import redis from flask import g, flash, request, url_for, redirect, current_app from gn3.authentication import AdminRole -from gn3.authentication import DataRole from gn2.wqflask.oauth2 import client from gn2.wqflask.oauth2.session import session_info diff --git a/gn2/wqflask/resource_manager.py b/gn2/wqflask/resource_manager.py index de397747..55b9cbb3 100644 --- a/gn2/wqflask/resource_manager.py +++ b/gn2/wqflask/resource_manager.py @@ -1,6 +1,5 @@ import json import redis -import requests from flask import Blueprint from flask import current_app @@ -13,11 +12,9 @@ from flask import url_for from gn3.authentication import AdminRole from gn3.authentication import DataRole -from gn3.authentication import get_user_membership from gn3.authentication import get_highest_user_access_role -from typing import Dict, Tuple -from urllib.parse import urljoin +from typing import Dict from gn2.wqflask.decorators import edit_admins_access_required from gn2.wqflask.decorators import login_required @@ -96,7 +93,6 @@ def view_resource(resource_id: str): @resource_management.route("/resources/<resource_id>/make-public", methods=('POST',)) -@edit_access_required @login_required() def update_resource_publicity(resource_id: str): redis_conn = redis.from_url( |