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')