Changeset 16521


Ignore:
Timestamp:
29 Jun 2021, 13:29:15 (3 years ago)
Author:
Henrik Bettermann
Message:

Catch total_score None.

File:
1 edited

Legend:

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

    r16517 r16521  
    9191        """Uniben Course Grading System
    9292        """
     93        if self.total_score is None:
     94            return (None, None)
    9395        if self.total_score < self.passmark:
    9496            return ('F',0)
    9597        if getattr(self, 'grading_sys', 'A') == 'A':
    96             if self.total_score is None:
    97                 return (None, None)
    9898            if self.total_score >= 70:
    9999                return ('A',5)
     
    108108            return ('F',0)
    109109        else:
    110             if self.total_score is None:
    111                 return (None, None)
    112110            if self.total_score >= 70:
    113111                return ('A',5)
Note: See TracChangeset for help on using the changeset viewer.