From 4460a3b8e618337583d9cb80a24b47ff510d24d4 Mon Sep 17 00:00:00 2001 From: thomaswoehlke Date: Sun, 13 Jun 2021 22:25:07 +0200 Subject: [PATCH] work --- flask_covid19/data_owid/owid_service_update.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flask_covid19/data_owid/owid_service_update.py b/flask_covid19/data_owid/owid_service_update.py index d92fd68a..23c5ea72 100644 --- a/flask_covid19/data_owid/owid_service_update.py +++ b/flask_covid19/data_owid/owid_service_update.py @@ -33,7 +33,7 @@ def __full_update_date_reported(self): i += 1 o = BlueprintDateReportedFactory.create_new_object_for_owid(my_date_reported=i_date_reported) db.session.add(o) - output = " [OWID] full update date_reported [ " + str(i) + " ] " + i_date_reported + " added" + output = " [OWID] date_reported [ " + str(i) + " ] " + i_date_reported + " added" log_lines.append(output) for log_line in log_lines: app.logger.info(log_line) @@ -56,7 +56,7 @@ def __full_update_continent(self): o = OwidContinentFactory.create_new(location_group_str=oi.continent) db.session.add(o) i += 1 - output = " [OWID] full update continent : [ " + str(i) + " ] " + str(o) + " added" + output = " [OWID] continent : [ " + str(i) + " ] " + str(o) + " added" log_lines.append(output) for log_line in log_lines: app.logger.info(log_line) @@ -82,7 +82,7 @@ def __full_update_country(self): i += 1 o = OwidCountryFactory.create_new(oi=oi, location_group=continent) db.session.add(o) - output = " [OWID] full update country : [ " + str(i) + " ] " + str(o) + " added" + output = " [OWID] country : [ " + str(i) + " ] " + str(o) + " added" log_lines.append(output) for log_line in log_lines: app.logger.info(log_line) @@ -152,7 +152,7 @@ def __owid_import_get_new_dates(self): odr_list = OwidDateReported.find_all_as_str() for datum_list in OwidImport.get_datum_list(): o = datum_list['date_reported_import_str'] - app.logger.info("o: " + str(o)) + # app.logger.info("o: " + str(o)) if o not in odr_list: todo.append(o) return todo @@ -198,7 +198,7 @@ def __update_date_reported(self): i += 1 o = BlueprintDateReportedFactory.create_new_object_for_owid(my_date_reported=i_date_reported) db.session.add(o) - output = " added OwidDateReported: [ " + str(i) + " ] " + str(o) + " " + output = " [OWID] date_reported [ " + str(i) + " ] " + str(o) + " added" log_lines.append(output) for log_line in log_lines: app.logger.info(log_line) @@ -220,7 +220,7 @@ def __update_continent(self): i += 1 o = OwidContinentFactory.create_new(location_group_str=continent) db.session.add(o) - output = " added OwidContinent: [ " + str(i) + " ] " + str(o) + " " + output = " [OWID] continent [ " + str(i) + " ] " + str(o) + " added" log_lines.append(output) for log_line in log_lines: app.logger.info(log_line)