fix
This commit is contained in:
parent
66a91b5deb
commit
b7d82d9117
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ def get_player(username: str) -> int:
|
|||
if user:
|
||||
return int(user[0])
|
||||
|
||||
def insert_player(username):
|
||||
def insert_player(username: str) -> int:
|
||||
'''Insert a new player with default has_rolled = False and return their user ID.'''
|
||||
CURSOR.execute(
|
||||
'INSERT INTO users (username, has_rolled) VALUES (?, ?)',
|
||||
|
@ -52,7 +52,7 @@ def insert_player(username):
|
|||
)
|
||||
return CURSOR.lastrowid
|
||||
|
||||
def delete_player(username):
|
||||
def delete_player(username: str) -> bool:
|
||||
'''Permanently deletes a user and all their pulls.'''
|
||||
CURSOR.execute(
|
||||
'SELECT id FROM users WHERE username = ?',
|
||||
|
|
Loading…
Add table
Reference in a new issue