Fix some naming issues
This commit is contained in:
parent
39c917fcd0
commit
3dd2ede738
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue