Ignore:
Timestamp:
19 Mar 2020, 15:48:17 (5 years ago)
Author:
Henrik Bettermann
Message:

Underline C courses in level reports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r16022 r16042  
    9999                    failed += 1
    100100                    credits_failed += ticket.credits
    101                     if ticket.mandatory:
     101                    if ticket.mandatory or ticket.course_category == 'C':
    102102                        courses_failed += 'm_%s_m ' % ticket.code
    103103                    else:
     
    442442        """True if student is allowed to remove the ticket.
    443443        """
    444         return not self.mandatory and not self.score
     444        if self.mandatory:
     445            return False
     446        if self.score:
     447            return False
     448        #if self.course_category == 'C':
     449        #    return False
     450        return True
    445451
    446452    @property
Note: See TracChangeset for help on using the changeset viewer.