pep-dortmund / member-database

Our member database application
Other
9 stars 1 forks source link

Fix email query #101

Closed maxnoe closed 4 years ago

maxnoe commented 4 years ago

There was a missing .join(Person) in the query, so when given the email and not the username, every user in the db was returned and then one_or_none raised an error.

The test failed with current master but passes after the second commit in this branch.