def ajax_count(collection=None): if validate_csrf(request.headers.get(CSRF_TOKEN_H, None)): return backend.ajax_count_get(request, app_conf_get("COUNT_API_ENDPOINT"), collection, timeout=60 * 60) else: abort(403)
def ajax_count(collection=None): if validate_csrf(request.headers.get(CSRF_TOKEN_H, None)): return backend.ajax_count_get( request, app_conf_get("COUNT_API_ENDPOINT"), collection, timeout=60 * 60 ) else: abort(403)