From 9e5b2ac472189bef16b3b5eee913bb6fa3c08719 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 26 Apr 2018 09:39:18 +0200 Subject: [PATCH] Tag some order messages as User --- worker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker.py b/worker.py index 3da82fc..1265e90 100644 --- a/worker.py +++ b/worker.py @@ -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):