Skip to content

Commit

Permalink
Fix locale in subscription notifications
Browse files Browse the repository at this point in the history
Signed-off-by: alfred richardsn <rchrdsn@protonmail.ch>
  • Loading branch information
r4rdsn committed Jun 11, 2020
1 parent bcc64b8 commit 9697bb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,7 @@ async def order_notification(order: typing.Mapping[str, typing.Any]):
order = await database.orders.find_one({"_id": order["_id"]}) # Update order
if not order:
return
await show_order(order, user["chat"], user["id"], show_id=True)
await show_order(
order, user["chat"], user["id"], show_id=True, locale=user["locale"]
)
await asyncio.sleep(1) # Avoid Telegram limit

0 comments on commit 9697bb8

Please sign in to comment.