|
@ -72,20 +72,18 @@ def index(): |
|
|
distribusies = {} |
|
|
distribusies = {} |
|
|
for distribusi in distribusis: |
|
|
for distribusi in distribusis: |
|
|
user = User.query.filter_by(id=distribusi.userid).first() |
|
|
user = User.query.filter_by(id=distribusi.userid).first() |
|
|
#distribusies[distribusi.distribusiname] = user.email |
|
|
|
|
|
distribusies[user.email] = distribusi |
|
|
|
|
|
singledistribusi = { |
|
|
singledistribusi = { |
|
|
"name": distribusi.distribusiname, |
|
|
"useremail": user.email, |
|
|
"term": distribusi.term, |
|
|
"term": distribusi.term, |
|
|
"course": distribusi.course, |
|
|
"course": distribusi.course, |
|
|
"year": distribusi.year, |
|
|
"year": distribusi.year, |
|
|
"tags": distribusi.tags.split(','), |
|
|
"tags": distribusi.tags.split(','), |
|
|
} |
|
|
} |
|
|
distribusies[user.email] = singledistribusi |
|
|
distribusies[distribusi.distribusiname] = singledistribusi |
|
|
years = uploadform.academicyear.choices |
|
|
years = uploadform.academicyear.choices |
|
|
terms = uploadform.term.choices |
|
|
terms = uploadform.term.choices |
|
|
courses = uploadform.course.choices |
|
|
courses = uploadform.course.choices |
|
|
print(type(courses[0])) |
|
|
|
|
|
template = render_template( |
|
|
template = render_template( |
|
|
"index.html", |
|
|
"index.html", |
|
|
distribusies=distribusies, |
|
|
distribusies=distribusies, |
|
|