Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Jannik Hellenkamp
website
Commits
9efe45c9
Commit
9efe45c9
authored
8 years ago
by
Andreas Valder
Browse files
Options
Downloads
Patches
Plain Diff
added course site dummy
parent
a0694556
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
server.py
+3
-2
3 additions, 2 deletions
server.py
templates/course.html
+1
-0
1 addition, 0 deletions
templates/course.html
with
4 additions
and
2 deletions
server.py
+
3
−
2
View file @
9efe45c9
...
...
@@ -3,7 +3,7 @@ from flask import Flask, render_template, g, request, url_for, redirect, session
import
mysql.connector
import
sqlite3
import
os
import
ldap3
#
import ldap3
import
re
app
=
Flask
(
__name__
)
...
...
@@ -146,7 +146,8 @@ def course():
if
'
courseid
'
in
request
.
args
:
id
=
request
.
args
[
'
courseid
'
]
return
render_template
(
'
course.html
'
,
course
=
query
(
'
SELECT * FROM courses WHERE handle = ?
'
,
id
))
course
=
query
(
'
SELECT * FROM courses WHERE handle = ?
'
,
id
),
lectures
=
query
(
'
SELECT * FROM lectures WHERE course_id = ?
'
,
id
))
else
:
return
redirect
(
url_for
(
'
index
'
))
...
...
This diff is collapsed.
Click to expand it.
templates/course.html
+
1
−
0
View file @
9efe45c9
...
...
@@ -9,6 +9,7 @@
<h1
class=
"panel-title"
>
Veranstaltungen
</h1>
</div>
{{course|pprint}}
{{lectures|pprint}}
<ul
class=
"list-group courselist"
>
{% for course in courses %}
{{ course_list_item(course,true) }}
...
...
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