app/main.py: flash a message after deleting a word (use bootstrap alerts -- it seems that dismissable alert does not work, so forget about it.).

Lanhui-flash-messages
Hui Lan 2021-08-02 19:27:22 +08:00
parent aace6c033e
commit c6b620b272
1 changed files with 1 additions and 4 deletions

View File

@ -196,11 +196,8 @@ def get_flashed_messages_if_any():
messages = get_flashed_messages()
s = ''
for message in messages:
s += '<div class="alert alert-warning alert-dismissible fade show" role="alert">'
s += '<div class="alert alert-warning" role="alert">'
s += f'Congratulations! {message}'
s += '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'
s += ' <span aria-hidden="true">&times;</span>'
s += '</button>'
s += '</div>'
return s