From 4ebcade424de9d24e67120bc14bca63a46a1b177 Mon Sep 17 00:00:00 2001 From: AlberLC Date: Sun, 12 Mar 2023 05:18:41 +0100 Subject: [PATCH] Improve UberEatsBot new code obtaining --- flanabot/bots/ubereats_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flanabot/bots/ubereats_bot.py b/flanabot/bots/ubereats_bot.py index 77d2bfd..ad0a076 100644 --- a/flanabot/bots/ubereats_bot.py +++ b/flanabot/bots/ubereats_bot.py @@ -96,6 +96,8 @@ class UberEatsBot(MultiBot, ABC): if (code := await get_code()) != last_code: break await asyncio.sleep(0.5) + else: + code = last_code codes.append(code) chat.ubereats['cookies'][i] = await context.cookies('https://www.myunidays.com')