mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-22 05:54:18 +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
|
# Commit all the changes
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
# Notify the user of the order result
|
# 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
|
# Notify the admins (in Live Orders mode) of the new order
|
||||||
admins = self.session.query(db.Admin).filter_by(live_mode=True).all()
|
admins = self.session.query(db.Admin).filter_by(live_mode=True).all()
|
||||||
# Create the order keyboard
|
# Create the order keyboard
|
||||||
|
@ -483,7 +484,7 @@ class ChatWorker(threading.Thread):
|
||||||
self.bot.send_message(self.chat.id, strings.error_no_orders)
|
self.bot.send_message(self.chat.id, strings.error_no_orders)
|
||||||
# Display the order status to the user
|
# Display the order status to the user
|
||||||
for order in orders:
|
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
|
# TODO: maybe add a page displayer instead of showing the latest 5 orders
|
||||||
|
|
||||||
def __add_credit_menu(self):
|
def __add_credit_menu(self):
|
||||||
|
|
Loading…
Reference in a new issue