stop /edit_rules from generating mod action temporarily

pull/142/head
Aevann 2023-03-23 22:22:46 +02:00
parent 2805fd2d14
commit a9a6d1dd1b
1 changed files with 5 additions and 5 deletions

View File

@ -87,11 +87,11 @@ def edit_rules_post(v):
with open(f'files/templates/rules_{SITE_NAME}.html', 'w+', encoding="utf-8") as f: with open(f'files/templates/rules_{SITE_NAME}.html', 'w+', encoding="utf-8") as f:
f.write(rules) f.write(rules)
ma = ModAction( # ma = ModAction(
kind="edit_rules", # kind="edit_rules",
user_id=v.id, # user_id=v.id,
) # )
g.db.add(ma) # g.db.add(ma)
return render_template('admin/edit_rules.html', v=v, rules=rules, msg='Rules edited successfully!') return render_template('admin/edit_rules.html', v=v, rules=rules, msg='Rules edited successfully!')
@app.post("/@<username>/make_admin") @app.post("/@<username>/make_admin")