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
bc1d59eb
Commit
bc1d59eb
authored
4 years ago
by
thomaswoehlke
Browse files
Options
Downloads
Patches
Plain Diff
start DEV 0.0.15
parent
f453ca71
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/covid19/blueprints/vaccination/vaccination_model.py
+1
-2
1 addition, 2 deletions
src/covid19/blueprints/vaccination/vaccination_model.py
src/covid19/blueprints/vaccination/vaccination_model_import.py
+0
-1
0 additions, 1 deletion
...ovid19/blueprints/vaccination/vaccination_model_import.py
with
1 addition
and
3 deletions
src/covid19/blueprints/vaccination/vaccination_model.py
+
1
−
2
View file @
bc1d59eb
...
@@ -71,8 +71,7 @@ class VaccinationData(db.Model):
...
@@ -71,8 +71,7 @@ class VaccinationData(db.Model):
@classmethod
@classmethod
def
get_all_as_page
(
cls
,
page
):
def
get_all_as_page
(
cls
,
page
):
return
db
.
session
.
query
(
cls
).
left_join
()
\
return
db
.
session
.
query
(
cls
)
\
.
order_by
(
cls
.
date_reported
)
\
.
paginate
(
page
,
per_page
=
ITEMS_PER_PAGE
)
.
paginate
(
page
,
per_page
=
ITEMS_PER_PAGE
)
@classmethod
@classmethod
...
...
This diff is collapsed.
Click to expand it.
src/covid19/blueprints/vaccination/vaccination_model_import.py
+
0
−
1
View file @
bc1d59eb
...
@@ -73,7 +73,6 @@ class VaccinationImport(db.Model):
...
@@ -73,7 +73,6 @@ class VaccinationImport(db.Model):
def
get_date_rep
(
cls
):
def
get_date_rep
(
cls
):
return
db
.
session
.
query
(
cls
)
\
return
db
.
session
.
query
(
cls
)
\
.
options
(
defer
(
'
*
'
),
undefer
(
"
datum
"
))
\
.
options
(
defer
(
'
*
'
),
undefer
(
"
datum
"
))
\
.
oder_by
(
cls
.
datum
)
\
.
group_by
(
cls
.
datum
)
\
.
group_by
(
cls
.
datum
)
\
.
distinct
()
\
.
distinct
()
\
.
all
()
.
all
()
...
...
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