aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorJohn Nduli2024-10-31 17:08:15 +0300
committerBonfaceKilz2024-11-04 12:22:43 +0300
commit82a866e263751832795ccae7c2fd42088522a29c (patch)
tree2f80bc6875c49daa4c5e7c802dd4e915370252f1 /gn2/wqflask
parent992bdc78601183a71a240ccae8bd8c701d201266 (diff)
downloadgenenetwork2-82a866e263751832795ccae7c2fd42088522a29c.tar.gz
chore: fix pylint errors
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/views.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 16c95ca7..3f8991f2 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -4,22 +4,18 @@ import array
import base64
import csv
import datetime
-import flask
import hashlib
import io # Todo: Use cStringIO?
import json
-import numpy as np
import os
import pickle as pickle
import random
-import requests
import sys
import traceback
import math
import uuid
import urllib.parse
-import xlsxwriter
from functools import reduce
@@ -30,8 +26,10 @@ from uuid import UUID
from urllib.parse import urljoin
-from gn2.wqflask import app
-
+import xlsxwriter
+import requests
+import numpy as np
+import flask
from gn3.computations.gemma import generate_hash_of_string
from flask import current_app
from flask import jsonify
@@ -46,6 +44,7 @@ from flask import send_file
from flask import url_for
from flask import flash
+from gn2.wqflask import app
from gn2.wqflask import search_results
from gn2.wqflask import server_side
@@ -479,7 +478,8 @@ def gsearch_updating():
@app.route("/docedit")
def docedit():
try:
- if g.user_session.record['user_email_address'] == "zachary.a.sloan@gmail.com" or g.user_session.record['user_email_address'] == "labwilliams@gmail.com":
+ if (g.user_session.record['user_email_address'] == "zachary.a.sloan@gmail.com"
+ or g.user_session.record['user_email_address'] == "labwilliams@gmail.com"):
doc = Docs(request.args['entry'], request.args)
return render_template("docedit.html", **doc.__dict__)
else:
@@ -1338,9 +1338,6 @@ def display_wiki_history(comment_id: str):
@app.route("/datasets/<name>", methods=('GET',))
def get_dataset(name):
from gn2.wqflask.oauth2.client import oauth2_get
- from gn2.wqflask.oauth2.client import user_logged_in
- from gn2.wqflask.oauth2.request_utils import user_details
- from gn2.wqflask.oauth2.request_utils import process_error
# We need to use the "id" as the identifier
metadata = requests.get(