1
Fork 0
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:
Steffo 2018-04-20 13:12:07 +02:00
parent 8441cce27c
commit 762a672ce8

View file

@ -255,7 +255,7 @@ class ChatWorker(threading.Thread):
strings.menu_add_credit, strings.menu_bot_info,
strings.menu_help])
# 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 selection == strings.menu_order:
# Open the order menu