Fixed DB_SET_USER query and API method

This commit is contained in:
nocturn9x 2020-06-07 06:44:25 +00:00
parent 9a010c5cfd
commit 7998b9c416
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def set_user(tg_id: int, uname: str):
try:
with database:
cursor = database.cursor()
cursor.execute(DB_SET_USER, (None, tg_id, uname, time.strftime("%d/%m/%Y %T %p")))
cursor.execute(DB_SET_USER, (None, tg_id, uname, time.strftime("%d/%m/%Y %T %p"), 0))
cursor.close()
return True
except sqlite3.Error as query_error: