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