forked from rDrama/rDrama
1
0
Fork 0

increase max duration for chudding from 1 month to 1 year

master
Aevann1 2022-08-05 20:49:44 +02:00
parent 3bc1ee583e
commit ad3ca4eb12
1 changed files with 2 additions and 2 deletions

View File

@ -844,9 +844,9 @@ def agendaposter(user_id, v):
user = get_account(user_id)
days = request.values.get("days")
if not days: days = 30.0
if not days: days = 365.0
days = float(days)
days = min(days, 30.0)
days = min(days, 365.0)
expiry = int(time.time() + days*60*60*24)