Skip to content
Snippets Groups Projects
Commit b111adc0 authored by Julian Rother's avatar Julian Rother
Browse files

Simplified data prepartion for upcoming lectures list

parent 45651018
Branches
No related tags found
No related merge requests found
...@@ -134,7 +134,6 @@ def index(): ...@@ -134,7 +134,6 @@ def index():
ORDER BY time ASC LIMIT 7''',datetime.today()) ORDER BY time ASC LIMIT 7''',datetime.today())
for i in upcomming: for i in upcomming:
i['date'] = i['time'].date() i['date'] = i['time'].date()
i['time'] = i['time'].time()
latestvideos=query(''' latestvideos=query('''
SELECT lectures.*, max(videos.time_updated) AS lastvidtime, courses.short, courses.downloadable, courses.title AS coursetitle SELECT lectures.*, max(videos.time_updated) AS lastvidtime, courses.short, courses.downloadable, courses.title AS coursetitle
FROM lectures FROM lectures
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment