不自动带入上次投票结果

This commit is contained in:
ZaneYork 2024-09-11 15:55:50 +08:00
parent b1f6013370
commit d354a50554
1 changed files with 5 additions and 5 deletions

View File

@ -63,11 +63,11 @@ def get_user_menu() -> str:
row = cursor.fetchone() row = cursor.fetchone()
if row: if row:
return row[0] return row[0]
else: # else:
cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,)) # cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,))
row = cursor.fetchone() # row = cursor.fetchone()
if row: # if row:
return row[0] # return row[0]
return '' return ''
finally: finally:
cursor.close() cursor.close()