Commit 3a9d2374 authored by Guillaume Mella's avatar Guillaume Mella
Browse files

format

parent b2a894dd
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment