From aced98754b8ec57f84d195e872bed103faf6cb01 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 5 Jan 2024 12:54:55 +0300 Subject: bug: flash messages --- issues/quality-control/fix-flash-messages.gmi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 issues/quality-control/fix-flash-messages.gmi (limited to 'issues') 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. -- cgit v1.2.3