remove global for get_route_data

This commit is contained in:
Jimmy Zelinskie 2016-01-08 16:43:15 -05:00
parent 1ae101c917
commit d21b4adc62

View file

@ -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):