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):