From a9a6d1dd1b77eb987f3a08d64adc36f32e0c761a Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 23 Mar 2023 22:22:46 +0200 Subject: [PATCH] stop /edit_rules from generating mod action temporarily --- files/routes/admin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 96aacff02..cf5637151 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -87,11 +87,11 @@ def edit_rules_post(v): with open(f'files/templates/rules_{SITE_NAME}.html', 'w+', encoding="utf-8") as f: f.write(rules) - ma = ModAction( - kind="edit_rules", - user_id=v.id, - ) - g.db.add(ma) + # ma = ModAction( + # kind="edit_rules", + # user_id=v.id, + # ) + # g.db.add(ma) return render_template('admin/edit_rules.html', v=v, rules=rules, msg='Rules edited successfully!') @app.post("/@/make_admin")