From 5f1e1ae3e72832999af2974cf6bc78bb98de3fe4 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 14 Aug 2024 17:26:46 +0200 Subject: [PATCH] =?UTF-8?q?Oops,=20let=E2=80=99s=20not=20double=E2=80=90lo?= =?UTF-8?q?ck=20the=20database?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/rules.py b/web/rules.py index dc26bcc..6b2a282 100644 --- a/web/rules.py +++ b/web/rules.py @@ -46,7 +46,7 @@ def edit(index): system.run(system.save_config) with db.locked(): - return flask.render_template('rules/edit.html', index=index, rule=db.load('rules')[index], ipsets=ipsets.read()) + return flask.render_template('rules/edit.html', index=index, rule=db.read('rules')[index], ipsets=ipsets.read()) except IndexError as e: return flask.Response(f'invalid rule: {index}', status=400, mimetype='text/plain')