diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-16 09:36:59 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-11-16 09:36:59 -0500 |
commit | ff6f706a1960bedddb91f4827aec46d1fbb1269a (patch) | |
tree | 26ff292128c529c2a32fd76f0b9232ad57a62f24 | |
parent | 92343502e23f8e9f0ef0feb16e42f43cd7b8f555 (diff) |
Revert "TEMP Fix lookup_user when multiple results found"
This reverts commit 92343502e23f8e9f0ef0feb16e42f43cd7b8f555.
-rw-r--r-- | gitsrht/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitsrht/app.py b/gitsrht/app.py index 840c334..0cf23f6 100644 --- a/gitsrht/app.py +++ b/gitsrht/app.py @@ -17,7 +17,7 @@ import gitsrht.oauth from gitsrht.git import commit_time, trim_commit def lookup_user(email): - return User.query.filter(User.email == email).first() + return User.query.filter(User.email == email).one_or_none() class GitApp(SrhtFlask): def __init__(self): |