fix: compare full date with invite links
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c99d055fe1
commit
880c0d1b8f
@ -39,7 +39,7 @@ async def register_invite(
|
||||
expired = (
|
||||
dt.fromisoformat(matching_invite["time"])
|
||||
+ timedelta(days=INVITE_TIME_LIMIT)
|
||||
).day > dt.now().day
|
||||
) < dt.now()
|
||||
|
||||
if expired:
|
||||
message = "This invite has expired, sorry."
|
||||
|
Loading…
Reference in New Issue
Block a user