diff options
author | Munyoki Kilyungi | 2024-08-26 16:46:04 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 14:51:30 +0300 |
commit | 6492c903bbbbfff5a9316b11ef895029c47c9122 (patch) | |
tree | 8aba67116418b69bd358e2eefa2139134401e138 /gn2/wqflask | |
parent | dfae1e447b239eba4bd07d8d5b43ab68cfafe7b2 (diff) | |
download | genenetwork2-6492c903bbbbfff5a9316b11ef895029c47c9122.tar.gz |
Auto-pep8 file.
* gn2/wqflask/views.py: Run auto-pep8 against file.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index a0c3d6a7..2442da03 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -1057,7 +1057,8 @@ def corr_compute_page(): with Redis.from_url(REDIS_URL, decode_responses=True) as rconn: if request.method == "POST": request_received = datetime.datetime.utcnow() - filename = hmac.hmac_creation(f"request_form_{request_received.isoformat()}") + filename = hmac.hmac_creation( + f"request_form_{request_received.isoformat()}") filepath = f"{TMPDIR}{filename}" with open(filepath, "wb") as pfile: pickle.dump(request.form, pfile, @@ -1364,7 +1365,8 @@ def edit_case_attributes(inbredset_id: int) -> Response: def flash_success(resp): def __succ__(remote_resp): - flash(f"Success: {remote_resp.json()['message']}", "alert-success") + flash( + f"Success: {remote_resp.json()['message']}", "alert-success") return resp return __succ__ return monad_requests.post( |