From c776278f04f0d7aa8883709088e6ca111dad7076 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 20 May 2023 14:31:54 +0100 Subject: [PATCH] Calculate the OTP code each time --- core/management/commands/scheduling.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/management/commands/scheduling.py b/core/management/commands/scheduling.py index b8f5a5c..fa5dbaf 100644 --- a/core/management/commands/scheduling.py +++ b/core/management/commands/scheduling.py @@ -103,7 +103,6 @@ async def withdrawal_job(group=None): platform = group.platforms.first() run = await AgoraClient(platform) - otp_code = TOTP(platform.otp_token).now() for wallet, pay_list_iter in pay_list.items(): print("WALLET ITER", wallet) @@ -127,7 +126,7 @@ async def withdrawal_job(group=None): "address": wallet.address, "amount": amount_rounded, "password": platform.password, - "otp": otp_code, + "otp": TOTP(platform.otp_token).now(), } print("CAST ADDRESS", cast["address"])