aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/metadata_edits.py33
1 files changed, 25 insertions, 8 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 31d056b4..2be54620 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -1,18 +1,36 @@
-import MySQLdb
-import os
-import json
import datetime
-import difflib
-import redis
+import json
+import os
from collections import namedtuple
-from flask import (Blueprint, current_app, redirect,
- flash, g, render_template, request, Response)
from itertools import groupby
+from typing import Dict
+
+import MySQLdb
+import difflib
+import redis
+
+from flask import Blueprint
+from flask import Response
+from flask import current_app
+from flask import flash
+from flask import g
+from flask import redirect
+from flask import render_template
+from flask import request
+from flask import url_for
from wqflask.decorators import edit_access_required
+from wqflask.decorators import edit_access_required
+from wqflask.decorators import edit_admins_access_required
+from wqflask.decorators import login_required
from wqflask.decorators import login_required
+from gn3.authentication import AdminRole
+from gn3.authentication import DataRole
+from gn3.authentication import get_highest_user_access_role
+from gn3.authentication import get_user_membership
+from gn3.commands import run_cmd
from gn3.db import diff_from_dict
from gn3.db import fetchall
from gn3.db import fetchone
@@ -24,7 +42,6 @@ from gn3.db.phenotypes import Probeset
from gn3.db.phenotypes import Publication
from gn3.db.phenotypes import PublishXRef
from gn3.db.phenotypes import probeset_mapping
-from gn3.commands import run_cmd
from gn3.db.traits import get_trait_csv_sample_data
from gn3.db.traits import update_sample_data