Ignore:
Timestamp:
29 Sep 2016, 08:00:59 (8 years ago)
Author:
Henrik Bettermann
Message:

Override studycourse cgpa attribute if value has been imported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py

    r14134 r14205  
    153153        if total_credits_counted:
    154154            cgpa = round(cgpa/total_credits_counted, 2)
     155        # Override cgpa if value has been imported
     156        # (not implemented in base package)
     157        imported_cgpa = getattr(self, 'imported_cgpa', None)
     158        if imported_cgpa:
     159            cgpa = imported_cgpa
    155160        return sorted(levels, key=lambda level: level['level_key']), cgpa
    156161
Note: See TracChangeset for help on using the changeset viewer.