不自动带入上次投票结果
This commit is contained in:
parent
b1f6013370
commit
d354a50554
10
src/dao.py
10
src/dao.py
|
@ -63,11 +63,11 @@ def get_user_menu() -> str:
|
|||
row = cursor.fetchone()
|
||||
if row:
|
||||
return row[0]
|
||||
else:
|
||||
cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,))
|
||||
row = cursor.fetchone()
|
||||
if row:
|
||||
return row[0]
|
||||
# else:
|
||||
# cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,))
|
||||
# row = cursor.fetchone()
|
||||
# if row:
|
||||
# return row[0]
|
||||
return ''
|
||||
finally:
|
||||
cursor.close()
|
||||
|
|
Loading…
Reference in New Issue