Skip to content
Snippets Groups Projects
Commit d7269097 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

### 0.0.7 Release

* Issue #8 WhoServiceUpdate.update_db_short()
* Issue #9 URL: /who/update/short
* Issue #10 async who_update_short_task
* Issue #11 WhoServiceUpdate.__update_who_global_data_short()
* Fixed #12 better layout for flash messages
parent 643b934b
No related branches found
No related tags found
No related merge requests found
...@@ -157,15 +157,15 @@ class WhoServiceUpdate: ...@@ -157,15 +157,15 @@ class WhoServiceUpdate:
deaths_new=int(result_item.new_deaths), deaths_new=int(result_item.new_deaths),
deaths_cumulative=int(result_item.cumulative_deaths), deaths_cumulative=int(result_item.cumulative_deaths),
date_reported=my_date_reported, date_reported=my_date_reported,
country=my_country country = my_country
) )
db.session.add(o) db.session.add(o)
#result_item.row_imported = True #result_item.row_imported = True
#db.session.add(result_item) #db.session.add(result_item)
i += 1
if i % 500 == 0: if i % 500 == 0:
app.logger.info(" update WHO short ... "+str(i)+" rows") app.logger.info(" update WHO short ... "+str(i)+" rows")
db.session.commit() db.session.commit()
i += 1
db.session.commit() db.session.commit()
app.logger.info(" update WHO short : "+str(i)+" total rows") app.logger.info(" update WHO short : "+str(i)+" total rows")
app.logger.info("") app.logger.info("")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment