Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
JMMC
jmmc-jmdcui-docker
Commits
3a9d2374
Commit
3a9d2374
authored
Jan 20, 2020
by
Guillaume Mella
Browse files
format
parent
b2a894dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
jmdc-ui/jmdc_app/views/jmdc_catalog.py
View file @
3a9d2374
...
...
@@ -7,7 +7,8 @@ from jmdc_app.models.submission import StarInfoEntry
def
jmdc_home
(
request
):
session
=
request
.
dbsession
# order by id (creation order / look during import )
stars
=
session
.
query
(
StarInfo
).
filter
(
StarInfo
.
star_info_entry
.
any
(
StarInfoEntry
.
validated
==
True
)).
order_by
(
StarInfo
.
id
).
all
()
# order by id (creation order / look during import ) and check for validated ones
stars
=
session
.
query
(
StarInfo
).
filter
(
StarInfo
.
star_info_entry
.
any
(
StarInfoEntry
.
validated
==
True
)).
order_by
(
StarInfo
.
id
).
all
()
return
{
'stars'
:
stars
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment