Changeset 16406 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 5 Mar 2021, 15:59:19 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r16390 r16406 478 478 return 479 479 480 def warnCourseAlreadyPassed(self, studylevel, course): 481 """Return message if course has already been passed at 482 previous levels. 483 """ 484 previous_verdict = studylevel.__parent__.previous_verdict 485 if previous_verdict in ('C', 'M'): 486 return False 487 for slevel in studylevel.__parent__.values(): 488 for cticket in slevel.values(): 489 if cticket.code == course.code \ 490 and cticket.total_score >= cticket.passmark: 491 return _('Course has already been passed at previous level.') 492 return False 493 480 494 def clearance_disabled_message(self, student): 481 495 if student.is_postgrad:
Note: See TracChangeset for help on using the changeset viewer.