aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-05 17:21:50 -0500
committerFrederick Muriuki Muriithi2024-08-05 17:23:43 -0500
commit053dc5d1a3a30b5ff3f1d4bd1201af82860ccd07 (patch)
tree3d3eef1e355965e40165239c0f0340caca39e927 /gn2/wqflask
parent2ef80c22b43c41763fd96a28db5b942efe0d34ce (diff)
downloadgenenetwork2-053dc5d1a3a30b5ff3f1d4bd1201af82860ccd07.tar.gz
minor code formatting.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/oauth2/toplevel.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gn2/wqflask/oauth2/toplevel.py b/gn2/wqflask/oauth2/toplevel.py
index c6b789aa..24d60311 100644
--- a/gn2/wqflask/oauth2/toplevel.py
+++ b/gn2/wqflask/oauth2/toplevel.py
@@ -83,9 +83,8 @@ def authorisation_code():
})
return redirect("/")
- return no_token_post(
- "auth/token", json=request_data).either(
- lambda err: __error__(process_error(err)), __success__)
+ return no_token_post("auth/token", json=request_data).either(
+ lambda err: __error__(process_error(err)), __success__)
flash("AuthorisationError: No code was provided.", "alert-danger")
return redirect("/")