diff options
author | Frederick Muriuki Muriithi | 2024-01-05 12:54:55 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-01-05 12:54:55 +0300 |
commit | aced98754b8ec57f84d195e872bed103faf6cb01 (patch) | |
tree | 38b2869b632846bc83e32d8a5a28f271e7a49aa5 /issues | |
parent | cfe9724a0907f559da9c2983fb2cd140cc7b39ee (diff) | |
download | gn-gemtext-aced98754b8ec57f84d195e872bed103faf6cb01.tar.gz |
bug: flash messages
Diffstat (limited to 'issues')
-rw-r--r-- | issues/quality-control/fix-flash-messages.gmi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/issues/quality-control/fix-flash-messages.gmi b/issues/quality-control/fix-flash-messages.gmi new file mode 100644 index 0000000..da54c52 --- /dev/null +++ b/issues/quality-control/fix-flash-messages.gmi @@ -0,0 +1,20 @@ +# Fix Flash Messages + +## Tags + +* assigned: fredm +* priority: low +* type: bug +* status: open +* keywords: flask, flash + +## Description + +The + +``` +{% with messages = get_flashed_messages(with_categories=true) %} +``` +statement seems to be getting the flashed messages as a generator, and as such, can only ever be looped through once. As such, the `flash_messages` macro defined in `qc_app/templates/flash_messages.html` does not work as expected. + +Instead, it will show the errors where it is first called on a template, and any subsequent calls will not show anything. |