forked from rDrama/rDrama
make modaction when under siege is changed
parent
359e0510f5
commit
c308606d0f
|
@ -2148,4 +2148,11 @@ def change_under_siege_post(v):
|
||||||
thresholds[key] = int(request.values.get(key))
|
thresholds[key] = int(request.values.get(key))
|
||||||
|
|
||||||
cache.set("under_siege_thresholds", thresholds)
|
cache.set("under_siege_thresholds", thresholds)
|
||||||
|
|
||||||
|
ma = ModAction(
|
||||||
|
kind="change_under_siege",
|
||||||
|
user_id=v.id,
|
||||||
|
)
|
||||||
|
g.db.add(ma)
|
||||||
|
|
||||||
return {"message": "Thresholds changed successfully!"}
|
return {"message": "Thresholds changed successfully!"}
|
||||||
|
|
Loading…
Reference in New Issue