Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jannik Hellenkamp
website
Commits
f480b090
Commit
f480b090
authored
Apr 30, 2017
by
Julian Rother
Browse files
Show invisible upcoming lectures when logged in
parent
3054ab9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
f480b090
...
...
@@ -331,8 +331,8 @@ def index():
SELECT lectures.*, "course" AS sep, courses.*
FROM lectures
JOIN courses ON (lectures.course_id = courses.id)
WHERE (time > ?) AND (time < ?)
and
lectures.visible
and
courses.visible
and
courses.listed
and not
lectures.norecording
ORDER BY time ASC LIMIT 30'''
,
start
,
end
)
WHERE (time > ?) AND (time < ?)
AND (? OR (
lectures.visible
AND
courses.visible
AND
courses.listed
)) AND NOT
lectures.norecording
ORDER BY time ASC LIMIT 30'''
,
start
,
end
,
ismod
()
)
for
i
in
upcomming
:
i
[
'date'
]
=
i
[
'time'
].
date
()
latestvideos
=
query
(
'''
...
...
Write
Preview
Supports
Markdown
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