#NEWLINE# @ weblab_api . route_web ( '/quickadmin/demos/map' ) #NEWLINE# @ check_credentials #NEWLINE# def demos_map( ) : #NEWLINE# #INDENT# group_names = weblab_api . config . get_value ( 'login_default_groups_for_external_users' , [ ] ) #NEWLINE# query_params = create_query_params ( group_names = group_names ) #NEWLINE# per_country = weblab_api . db . quickadmin_uses_per_country ( query_params ) #NEWLINE# per_time = _per_country_by_to_d3 ( weblab_api . db . quickadmin_uses_per_country_by ( query_params ) ) #NEWLINE# return render_template ( 'quickadmin/uses_map.html' , per_country = per_country , per_time = per_time , arguments = query_params . pubdict ( ) , param_url_for = get_url_for ( ) , title = 'Demo uses map' , endpoint = '.demos_map' )