Beispiel #1
0
 def get_csv_content(self):
     query_result = self.factory.create_query_result(data=json_dumps(data))
     return serialize_query_result_to_csv(query_result)
Beispiel #2
0
 def make_csv_response(query_result):
     headers = {'Content-Type': "text/csv; charset=UTF-8"}
     return make_response(serialize_query_result_to_csv(query_result), 200, headers)
Beispiel #3
0
 def get_csv_content(self):
     query_result = self.factory.create_query_result(data=json_dumps(data))
     return serialize_query_result_to_csv(query_result)
Beispiel #4
0
 def make_csv_response(query_result):
     headers = {'Content-Type': "text/csv; charset=UTF-8"}
     return make_response(serialize_query_result_to_csv(query_result), 200, headers)