Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswoehlke committed Jun 13, 2021
1 parent 7b6dec3 commit 4460a3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flask_covid19/data_owid/owid_service_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4460a3b

Please sign in to comment.