fix: compare full date with invite links
continuous-integration/drone/push Build is passing Details

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
1 changed files with 1 additions and 1 deletions

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