Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebHost: flash each message only once #2547

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Conversation

Berserker66
Copy link
Member

What is this fixing or adding?

flash() can emit the same message multiple times, for example if @app.after_request is used and static files are served through flask, each static file will trigger the after request, which in turn can run a flash() which accumulate.

How was this tested?

on https://berserkermulti.world

If this makes graphical changes, please attach screenshots.

Before:
image

After:
image

@ScipioWright ScipioWright added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Dec 1, 2023
@Berserker66 Berserker66 merged commit 5e5018d into main Dec 1, 2023
14 checks passed
@Berserker66 Berserker66 deleted the webhost_unique_flash branch December 1, 2023 20:19
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants