mirror of https://github.com/nocturn9x/BotBase.git
Fixed DB_SET_USER query and API method
This commit is contained in:
parent
9a010c5cfd
commit
7998b9c416
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue