예제 #1
0
 def format(self, response: SurveyResponse) -> List[dict]:
     self._base_row = response.to_dict()
     self._flatten_location_fields()
     self._custom_formatter.format(self._base_row)
     return self._generate_one_row_per_degree()
 def format(self, response: SurveyResponse) -> List[dict]:
     self._result = response.to_dict()
     self._flatten_location_fields()
     self._flatten_jhu_degrees()
     self._custom_formatter.format(self._result)
     return [self._column_order.apply_to(self._result)]