From e2efbfeec23ee7a0bbb8b759ed7e33671b56bfd9 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Tue, 17 Oct 2023 07:16:08 +0200 Subject: [PATCH] change tmp.py --- tmp2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmp2.py b/tmp2.py index 58cfe450..adedf18c 100644 --- a/tmp2.py +++ b/tmp2.py @@ -89,12 +89,14 @@ print(len(winners)) +winners = [i.lower() for i in winners] + print(LineaRaffleEntries.objects.filter(is_winner=True).count()) for i in LineaRaffleEntries.objects.all(): - if i.wallet_address in winners: + if str(i.wallet_address).lower() in winners: i.is_winner = True i.save()