From 987813514c25b2c3f0581b656c77300cd59a7c9f Mon Sep 17 00:00:00 2001 From: FrostiDrinks Date: Tue, 5 Nov 2024 10:56:12 -0700 Subject: [PATCH] cast timespan result to int --- app/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands.py b/app/commands.py index 5203d8d51..7c3db5241 100644 --- a/app/commands.py +++ b/app/commands.py @@ -1141,11 +1141,11 @@ async def givedonator(ctx: Context) -> str | None: return "Invalid timespan." if target.donor_end < time.time(): - timespan += int(time.time()) + timespan += time.time() else: timespan += target.donor_end - target.donor_end = timespan + target.donor_end = int(timespan) await app.state.services.database.execute( "UPDATE users SET donor_end = :end WHERE id = :user_id", {"end": timespan, "user_id": target.id},