This commit is contained in:
Mateusz779 2023-04-13 12:31:13 +02:00
parent 354963b353
commit 8322535ffc

2
db.py
View File

@ -113,7 +113,7 @@ def add_auth_token(user_id):
connect() connect()
with get_cur() as cur: with get_cur() as cur:
cur.execute(""" cur.execute("""
INSERT INTO auth_tokens (user_id, token, expries_on) INSERT INTO auth_tokens (user_id, token, expires_on)
VALUES (%s, %s, NOW() + INTERVAL '1 day') VALUES (%s, %s, NOW() + INTERVAL '1 day')
""",(user_id,token,)) """,(user_id,token,))
conn.commit() conn.commit()