summaryrefslogtreecommitdiff
path: root/opendc/models/user.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-24 09:13:09 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-24 09:13:09 +0200
commitbae760a62fc6a480fbe615dff6a7de03c7fd6d1d (patch)
tree06fc47f9922add14a3ac50fcfdfeb3d4fdc00363 /opendc/models/user.py
parent6fdb3e75dad15523d996e457c216647755b29101 (diff)
Add formatter
Diffstat (limited to 'opendc/models/user.py')
-rw-r--r--opendc/models/user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/models/user.py b/opendc/models/user.py
index 0406c31c..df3a4e76 100644
--- a/opendc/models/user.py
+++ b/opendc/models/user.py
@@ -20,7 +20,7 @@ class User(Model):
def from_google_id(cls, google_id):
"""Initialize a User by fetching them by their google id."""
- user = cls._from_database('SELECT * FROM users WHERE google_id = %s', (google_id,))
+ user = cls._from_database('SELECT * FROM users WHERE google_id = %s', (google_id, ))
if user is not None:
return user
@@ -31,7 +31,7 @@ class User(Model):
def from_email(cls, email):
"""Initialize a User by fetching them by their email."""
- user = cls._from_database('SELECT * FROM users WHERE email = %s', (email,))
+ user = cls._from_database('SELECT * FROM users WHERE email = %s', (email, ))
if user is not None:
return user