diff options
author | Munyoki Kilyungi | 2023-03-20 12:55:17 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-03-20 22:05:46 +0300 |
commit | e3aa54e44fcc990299bae846522fb92424260d01 (patch) | |
tree | 4bc42b24b1120dc28f964258a59847ad9a56c1a9 | |
parent | c8c091c8e2833ce022c316cf498122b2af720f49 (diff) | |
download | genenetwork2-e3aa54e44fcc990299bae846522fb92424260d01.tar.gz |
Fix minor pep-8 issues
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index 2827e617..eb590408 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -26,7 +26,6 @@ from wqflask.decorators import login_required from gn3.authentication import AdminRole from gn3.authentication import get_highest_user_access_role -from gn3.authentication import get_user_info_by_key from gn3.csvcmp import create_dirs_if_not_exists from gn3.csvcmp import csv_diff from gn3.csvcmp import extract_invalid_csv_headers @@ -59,7 +58,7 @@ def _get_diffs( try: author = json.loads(redis_conn.hget("users", author)).get( "full_name" - ) + ) except (AttributeError, TypeError): author = author return { @@ -439,7 +438,8 @@ def update_probeset(name: str): json_data=json.dumps(diff_data), ), ) - edited_values = {k: v for (k, v) in diff_data['Probeset'].items() if k not in {"id_", "timestamp", "author"}} + edited_values = {k: v for (k, v) in diff_data['Probeset'].items() + if k not in {"id_", "timestamp", "author"}} changes = [] for k in edited_values.keys(): changes.append(f"<b><span data-message-id='{k}'></span></b>") @@ -466,7 +466,8 @@ def get_sample_data_as_csv(dataset_id: str, phenotype_id: int): ), mimetype="text/csv", headers={ - "Content-disposition": f"attachment; filename=sample-data-{dataset_id}.csv" + "Content-disposition": f"attachment; \ +filename=sample-data-{dataset_id}.csv" }, ) |