diff options
Diffstat (limited to 'apps/patchwork/db.py')
-rw-r--r-- | apps/patchwork/db.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/patchwork/db.py b/apps/patchwork/db.py index e886ba5..26957fc 100644 --- a/apps/patchwork/db.py +++ b/apps/patchwork/db.py @@ -77,12 +77,12 @@ class PatchworkDB(object): :param timestamp: When the user was added in the cache. """ self.cursor.execute('''INSERT INTO users(id, valid, ts) - VALUES (%s, %s, %s)''', (email, valid, timestamp)) + VALUES (%s, %s, %s)''', (email, int(valid), timestamp)) def update_user(self, email, valid, timestamp): """Updates a user in the DB.""" self.cursor.execute('''UPDATE users SET valid=%s, ts=%s WHERE id=%s''', - (valid, timestamp, email)) + (int(valid), timestamp, email)) def get_user(self, email): """Retrieves a user from the DB. |