From 3dd2ede7388b7b6fda1996996eda08353fc74073 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 25 Mar 2022 13:06:17 +0000 Subject: [PATCH] Fix some naming issues --- slinky/web.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slinky/web.py b/slinky/web.py index 12e7e88..7a296f5 100644 --- a/slinky/web.py +++ b/slinky/web.py @@ -183,7 +183,7 @@ def lister() -> Response: @slinky_webapp.route('/_/edit/', methods=['GET', 'POST']) @protect -def edit(id: int) -> Response: +def edit(id: int) -> Response: # pylint: disable=invalid-name,redefined-builtin """ Edit the shortcode. @@ -193,6 +193,8 @@ def edit(id: int) -> Response: form = DelForm(meta={'csrf': False}) slinky = Slinky(cfg['db']) + logging.debug('Editing: %d', id) + if form.is_submitted(): slinky.delete_by_shortcode(form.delete.data.strip())