Ejemplo n.º 1
0
    def correct_data(cls, root_path, reflesh):
        check_result, message = cls.check_download_page(root_path)

        if check_result is False:
            return message, None

        json = FileFunction.get_param_json(root_path, cls.COMPANY_NAME)
        merged_pkl_path = KyudenService.correct_data(json['url'], root_path,
                                                     reflesh)
        count = QueryService.count(root_path, cls.COMPANY_NAME)

        return count, merged_pkl_path
Ejemplo n.º 2
0
 def get_daily_data(cls, root_path, unit, year_value, month_value,
                    date_value):
     return QueryService.get_daily_data(root_path, cls.COMPANY_NAME, unit,
                                        year_value, month_value, date_value)
Ejemplo n.º 3
0
 def get(cls, root_path, unit, from_value, to_value):
     return QueryService.get(root_path, cls.COMPANY_NAME, unit, from_value,
                             to_value)
Ejemplo n.º 4
0
 def count(cls, root_path):
     return QueryService.count(root_path, cls.COMPANY_NAME)
Ejemplo n.º 5
0
 def correct_data(cls, root_path, merged_pkl_path_list):
     JapanService.correct_data(root_path, merged_pkl_path_list)
     count = QueryService.count(root_path, cls.COMPANY_NAME)
     return count