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