forked from rDrama/rDrama
dfdf
parent
6e74bead20
commit
cc2b4ba788
|
@ -862,11 +862,11 @@ def ban_user(user_id, v):
|
||||||
|
|
||||||
# check for number of days for suspension
|
# check for number of days for suspension
|
||||||
if 'form' in request.values:
|
if 'form' in request.values:
|
||||||
days = float(request.values.get("days", "0"))
|
days = float(request.values.get("days")) if request.values.get('days') else 0
|
||||||
reason = sanitize(request.values.get("reason", ""))
|
reason = sanitize(request.values.get("reason", ""))
|
||||||
message = request.values.get("reason", "")
|
message = request.values.get("reason", "")
|
||||||
else:
|
else:
|
||||||
days = float(request.values.get("days", "0"))
|
days = float(request.values.get("days")) if request.values.get('days') else 0
|
||||||
reason = sanitize(request.values.get("reason", ""))
|
reason = sanitize(request.values.get("reason", ""))
|
||||||
message = request.values.get("reason", "")
|
message = request.values.get("reason", "")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue