Skip to content

Commit

Permalink
fixed bug (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNyl committed Apr 17, 2024
1 parent a583c45 commit 0f24085
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/content/util/registration_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from datetime import datetime, timedelta


def get_payment_expiredate():
return datetime.now() + timedelta(hours=12)
def get_payment_expiredate(event=None):
if not event:
return datetime.now() + timedelta(hours=12)

return datetime.now() + timedelta(
hours=event.paid_information.paytime.hour,
minutes=event.paid_information.paytime.minute,
seconds=event.paid_information.paytime.second,
)

0 comments on commit 0f24085

Please sign in to comment.