Skip to content

Commit

Permalink
Merge pull request #1 from osuAkatsuki/master
Browse files Browse the repository at this point in the history
cast timespan result to int (osuAkatsuki#685)
  • Loading branch information
blueskychan-dev authored Jan 10, 2025
2 parents 222cda2 + f9263dd commit 1bf2188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,11 +1522,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},
Expand Down

0 comments on commit 1bf2188

Please sign in to comment.