1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-24 14:54:18 +00:00

Minor string change

This commit is contained in:
Steffo 2018-04-17 22:59:28 +02:00
parent 97fcf75b0d
commit d3a89f3215
2 changed files with 4 additions and 2 deletions

View file

@ -297,7 +297,9 @@ success_product_edited = "✅ Il prodotto è stato aggiunto/modificato con succe
success_product_deleted = "✅ Il prodotto è stato eliminato con successo!" success_product_deleted = "✅ Il prodotto è stato eliminato con successo!"
# Success: order has been created # Success: order has been created
success_order_created = "✅ L'ordine è stato inviato con successo!" success_order_created = "✅ L'ordine è stato inviato con successo!\n" \
"\n" \
"{order}"
# Success: order was marked as completed # Success: order was marked as completed
success_order_completed = "✅ Hai segnato l'ordine #{order_id} come completato." success_order_completed = "✅ Hai segnato l'ordine #{order_id} come completato."

View file

@ -457,7 +457,7 @@ 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) self.bot.send_message(self.chat.id, strings.success_order_created.format(order=order.get_text(self.session)))
# 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