Fix some naming issues

This commit is contained in:
Scott Wallace 2022-03-25 13:06:17 +00:00
parent 39c917fcd0
commit 3dd2ede738
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -183,7 +183,7 @@ def lister() -> Response:
@slinky_webapp.route('/_/edit/<int:id>', methods=['GET', 'POST']) @slinky_webapp.route('/_/edit/<int:id>', methods=['GET', 'POST'])
@protect @protect
def edit(id: int) -> Response: def edit(id: int) -> Response: # pylint: disable=invalid-name,redefined-builtin
""" """
Edit the shortcode. Edit the shortcode.
@ -193,6 +193,8 @@ def edit(id: int) -> Response:
form = DelForm(meta={'csrf': False}) form = DelForm(meta={'csrf': False})
slinky = Slinky(cfg['db']) slinky = Slinky(cfg['db'])
logging.debug('Editing: %d', id)
if form.is_submitted(): if form.is_submitted():
slinky.delete_by_shortcode(form.delete.data.strip()) slinky.delete_by_shortcode(form.delete.data.strip())