mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-21 21:44:19 +00:00
Fix user updating bug
This commit is contained in:
parent
8441cce27c
commit
762a672ce8
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class ChatWorker(threading.Thread):
|
||||||
strings.menu_add_credit, strings.menu_bot_info,
|
strings.menu_add_credit, strings.menu_bot_info,
|
||||||
strings.menu_help])
|
strings.menu_help])
|
||||||
# After the user reply, update the user data
|
# After the user reply, update the user data
|
||||||
self.user = self.session.query(db.User).filter(db.User.user_id == self.chat.id)
|
self.user = self.session.query(db.User).filter(db.User.user_id == self.chat.id).one_or_none()
|
||||||
# If the user has selected the Order option...
|
# If the user has selected the Order option...
|
||||||
if selection == strings.menu_order:
|
if selection == strings.menu_order:
|
||||||
# Open the order menu
|
# Open the order menu
|
||||||
|
|
Loading…
Reference in a new issue