Ejemplo n.º 1
0
 def save_field(self, dailys_field, data, data_date):
     """
     Save given data in a specified column for the current date row.
     :type dailys_field: DailysField
     :type data: dict
     :type data_date: date
     """
     if dailys_field.type_name is None:
         raise DailysException("Cannot write to unassigned dailys field")
     Commons.put_json_to_url(
         "{}/stats/{}/{}/?source=Hallo".format(self.dailys_url, dailys_field.type_name, data_date.isoformat()),
         data
     )