1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +00:00

Tag some order messages as User

This commit is contained in:
Steffo 2018-04-26 09:39:18 +02:00
parent fe63028e5f
commit 9e5b2ac472

View file

@ -455,7 +455,8 @@ class ChatWorker(threading.Thread):
# Commit all the changes
self.session.commit()
# Notify the user of the order result
self.bot.send_message(self.chat.id, strings.success_order_created.format(order=order.get_text(self.session)))
self.bot.send_message(self.chat.id, strings.success_order_created.format(order=order.get_text(self.session,
user=True)))
# Notify the admins (in Live Orders mode) of the new order
admins = self.session.query(db.Admin).filter_by(live_mode=True).all()
# Create the order keyboard
@ -483,7 +484,7 @@ class ChatWorker(threading.Thread):
self.bot.send_message(self.chat.id, strings.error_no_orders)
# Display the order status to the user
for order in orders:
self.bot.send_message(self.chat.id, order.get_text(self.session))
self.bot.send_message(self.chat.id, order.get_text(self.session, user=True))
# TODO: maybe add a page displayer instead of showing the latest 5 orders
def __add_credit_menu(self):