forked from MarseyWorld/MarseyWorld
increase max duration for chudding from 1 month to 1 year
parent
3bc1ee583e
commit
ad3ca4eb12
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue