def get(self): # This import all paths so it's good pre-initialize them here init_time = time.time() [p for p in facade.web_path_security_info()] end_time = time.time() delta_seconds = end_time - init_time logging.info("Startup: %s miliseconds" % (delta_seconds * 1000))
def get(self): # This import all paths so it's good pre-initialize them here init_time = time.time() [p for p in facade.web_path_security_info()] end_time = time.time() delta_seconds = (end_time - init_time) logging.info('Startup: %s miliseconds' % (delta_seconds * 1000))
def index(): path_infos = facade.web_path_security_info() path_infos = sorted(path_infos, key=lambda i: i.path) return TemplateResponse({'path_infos': path_infos}, 'permission/home.html')