|
|
@ -22,9 +22,8 @@ def UploadNewDistribusi(uploadfolder): |
|
|
|
newdistribusi = Distribusis( |
|
|
|
distribusiname=uploadform.sitename.data, |
|
|
|
userid=user.id, |
|
|
|
term=uploadform.term.data, |
|
|
|
course=uploadform.course.data, |
|
|
|
year=uploadform.academicyear.data, |
|
|
|
category=uploadform.category.data, |
|
|
|
year=uploadform.year.data, |
|
|
|
tags=uploadform.tags.data, |
|
|
|
) |
|
|
|
user.currentdistribusi = uploadform.sitename.data |
|
|
@ -66,9 +65,8 @@ def UploadUpdatedFiles(uploadfolder): |
|
|
|
distribusi = Distribusis.query.filter_by( |
|
|
|
distribusiname=current_distribusi |
|
|
|
).first() |
|
|
|
distribusi.term = uploadform.term.data |
|
|
|
distribusi.course = uploadform.course.data |
|
|
|
distribusi.year = uploadform.academicyear.data |
|
|
|
distribusi.category = uploadform.category.data |
|
|
|
distribusi.year = uploadform.year.data |
|
|
|
distribusi.tags = uploadform.tags.data |
|
|
|
distribusi.visible = False |
|
|
|
db.session.commit() |
|
|
|