remove global for get_route_data
This commit is contained in:
parent
1ae101c917
commit
d21b4adc62
1 changed files with 1 additions and 8 deletions
|
@ -39,16 +39,9 @@ from util.useremails import send_email_changed
|
|||
|
||||
|
||||
|
||||
_route_data = None
|
||||
|
||||
@lru_cache(maxsize=1)
|
||||
def _get_route_data():
|
||||
global _route_data
|
||||
if _route_data:
|
||||
return _route_data
|
||||
|
||||
_route_data = swagger_route_data(include_internal=True, compact=True)
|
||||
return _route_data
|
||||
return swagger_route_data(include_internal=True, compact=True)
|
||||
|
||||
|
||||
def render_page_template_with_routedata(name, *args, **kwargs):
|
||||
|
|
Reference in a new issue