Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flask-covid19
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Wöhlke
flask-covid19
Commits
2f3faf3c
Commit
2f3faf3c
authored
4 years ago
by
thomaswoehlke
Browse files
Options
Downloads
Patches
Plain Diff
update data
parent
d2b3dabe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/covid19/blueprints/who/who_model_import.py
+8
-8
8 additions, 8 deletions
src/covid19/blueprints/who/who_model_import.py
with
8 additions
and
8 deletions
src/covid19/blueprints/who/who_model_import.py
+
8
−
8
View file @
2f3faf3c
...
...
@@ -78,9 +78,9 @@ class WhoImport(db.Model):
sql_query
=
"""
select
distinct
who
_import.date_reported
application_
_import
__who
.date_reported
from
who
_import
application_
_import
__who
where
date_reported
not in (
...
...
@@ -99,9 +99,9 @@ class WhoImport(db.Model):
who_date_reported.date_reported desc
)
group by
who
_import.date_reported
application_
_import
__who
.date_reported
order by
who
_import.date_reported desc
application_
_import
__who
.date_reported desc
"""
new_dates
=
[]
for
item
in
db
.
session
.
execute
(
sql_query
):
...
...
@@ -112,9 +112,9 @@ class WhoImport(db.Model):
def
countries
(
cls
):
sql_query
=
"""
select distinct
who
_import.country_code,
who
_import.country,
who
_import.who_region
from
who
_import
application_
_import
__who
.country_code,
application_
_import
__who
.country,
application_
_import
__who
.who_region
from
application_
_import
__who
"""
return
db
.
session
.
execute
(
sql_query
).
fetchall
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment