diff --git a/src/updater/__init__.py b/src/updater/__init__.py index 8f225bb..3083f3d 100644 --- a/src/updater/__init__.py +++ b/src/updater/__init__.py @@ -11,13 +11,13 @@ def __init__(self, county = "hays"): os.path.dirname(__file__), "..", "..", "data", self.county, "case_json_cleaned" ) self.processed_path = os.path.join(self.case_json_cleaned_folder_path) + # open or create a output directory for a log and successfully processed data if os.path.exists(self.case_json_cleaned_folder_path) and \ not os.path.exists(self.processed_path): os.makedirs(self.processed_path) self.logger = self.configure_logger() - self.COSMOSDB_CONTAINER_CASES_CLEANED = self.get_database_container() def configure_logger(self): @@ -129,4 +129,4 @@ def update(self): self.logger.info(f"Insertion successfully done with id: {input_dict['id']}, version: { input_dict['version']}") if __name__ == '__main__': - Updater().update() \ No newline at end of file + Updater().update()