diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-16 09:36:16 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-11-16 09:36:16 -0500 |
commit | 92343502e23f8e9f0ef0feb16e42f43cd7b8f555 (patch) | |
tree | c9459ae10d3c85a34052f62eb913169376a3406f | |
parent | bffba93430cb9ba00e1cdac445d69dfe239bcd27 (diff) |
TEMP Fix lookup_user when multiple results found
-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 0cf23f6..840c334 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).one_or_none() + return User.query.filter(User.email == email).first() class GitApp(SrhtFlask): def __init__(self): |