aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-11-01 17:38:26 +0300
committerBonfaceKilz2021-11-04 15:22:41 +0300
commitf6a2a07b726dbff09f73bd7e98b155fd90471862 (patch)
tree47ee9acf61a604fef9b4d04ab5c0e1ec735082e2
parentb3a9b90343f70584b82df00a42cbcc5b97dbfc7f (diff)
downloadgenenetwork2-f6a2a07b726dbff09f73bd7e98b155fd90471862.tar.gz
Sort import according to pep-8 spec
-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