Skip to content

Commit

Permalink
Clear after_request_callbacks after calling
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymal committed Aug 31, 2023
1 parent 964ff4b commit b2c8cc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mini_fiction/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,3 +767,4 @@ def make_absolute_url(url: str) -> str:
def call_after_request_callbacks() -> None:
for f, args, kwargs in getattr(g, "after_request_callbacks", ()):
f(*args, **kwargs)
g.after_request_callbacks = []

0 comments on commit b2c8cc5

Please sign in to comment.