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:
parent
fe63028e5f
commit
9e5b2ac472
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue