Skip to content

Commit ab581c4

Browse files
authored
Merge pull request #558 from BCStudentSoftwareDevTeam/laborhistory-quickfix
Labor History datetime Quick Fix is merged, a student variable is deleted that is not called at all. Datetime.date.today is updated to datetime.today() is fixed. The modals are working back.
2 parents 4986885 + 91afb75 commit ab581c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/controllers/main_routes/laborHistory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ def populateModal(statusKey):
134134
forms = (FormHistory.select().join(LaborReleaseForm, join_type=JOIN.LEFT_OUTER)
135135
.where(FormHistory.formID == statusKey).order_by(FormHistory.createdDate.desc(), FormHistory.formHistoryID.desc()))
136136
statusForm = LaborStatusForm.get(LaborStatusForm.laborStatusFormID == statusKey)
137-
student = Student.get(Student.ID == statusForm.studentSupervisee)
138-
currentDate = datetime.date.today()
137+
currentDate = datetime.today()
139138
pendingformType = None
140139
first = True # temp variable to determine if this is the newest form
141140
for form in forms:

0 commit comments

Comments
 (0)