Ignore:
Timestamp:
22 Dec 2016, 20:22:28 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize _display_gpa.

File:
1 edited

Legend:

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

    r14357 r14362  
    6060        return total
    6161
     62    def _display_gpa(self, gpa):
     63        return int(100 * gpa) / 100.0
     64
    6265    @property
    6366    def gpa_params(self):
     
    7275                credits_weighted += ticket.credits * ticket.weight
    7376        if credits_counted:
    74             level_gpa = round(credits_weighted/credits_counted, 3)
     77            level_gpa = self._display_gpa(credits_weighted/credits_counted)
    7578        # Override level_gpa if value has been imported
    7679        imported_gpa = getattr(self, 'imported_gpa', None)
Note: See TracChangeset for help on using the changeset viewer.