was this broken?

This commit is contained in:
Benedikt Bartscher 2024-10-28 22:32:10 +01:00
parent ba0e7602ad
commit 467308e7c2
No known key found for this signature in database

View File

@ -504,7 +504,10 @@ class App(MiddlewareMixin, LifespanMixin, Base):
# Check if the route given is valid # Check if the route given is valid
verify_route_validity(route) verify_route_validity(route)
if route in self.unevaluated_pages and environment.RELOAD_CONFIG.get: # TODO: this was broken?
if route in self.unevaluated_pages and (
environment.RELOAD_CONFIG.get in [True, False]
):
# when the app is reloaded(typically for app harness tests), we should maintain # when the app is reloaded(typically for app harness tests), we should maintain
# the latest render function of a route.This applies typically to decorated pages # the latest render function of a route.This applies typically to decorated pages
# since they are only added when app._compile is called. # since they are only added when app._compile is called.