def export(): query = documents_query(request.args) query = {'query': query['query']} limit = min(10000, get_limit(default=50)) output = make_excel(get_results(query, limit), FIELDS) return send_file(output, mimetype=XLSX_MIME, as_attachment=True, attachment_filename='export.xlsx')
def export(): state = QueryState(request.args, request.authz, limit=0) log_event(request) output = make_excel(get_results(state, 50000), FIELDS) return send_file(output, mimetype=XLSX_MIME, as_attachment=True, attachment_filename='export.xlsx')
def export(): parser = SearchQueryParser(request.args, request.authz) query = DocumentsQuery(parser) output = make_excel(get_results(query, 50000), FIELDS) return send_file(output, mimetype=XLSX_MIME, as_attachment=True, attachment_filename='export.xlsx')