From 85b4158d5b9ab529397bb5ba9fdcdfa4f3f6e29f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Jun 2022 16:52:20 +0200 Subject: [PATCH] "1 lottery tickets" -> "1 lottery ticket" --- files/helpers/lottery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index a34a00986..32a275df4 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -112,6 +112,7 @@ def purchase_lottery_tickets(v, quantity=1): g.db.commit() + if quantity == 1: return True, f'Successfully purchased {quantity} lottery ticket!' return True, f'Successfully purchased {quantity} lottery tickets!' def grant_lottery_tickets_to_user(v, quantity):