fix: compare full date with invite links
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
knoflook 2022-02-03 18:42:54 +01:00
parent c99d055fe1
commit 880c0d1b8f
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C

View File

@ -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."