Ignore:
Timestamp:
5 Sep 2013, 10:15:59 (11 years ago)
Author:
Henrik Bettermann
Message:

Add one more decimal place to level gpa.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r10582 r10586  
    116116                weighted_credits += ticket.credits * ticket.weight
    117117        if credits_counted:
    118             level_gpa = round(weighted_credits/credits_counted, 2)
     118            level_gpa = round(weighted_credits/credits_counted, 3)
    119119        return level_gpa, credits_counted, weighted_credits
    120120
     
    129129                weighted_credits += ticket.credits * ticket.weight
    130130        if credits_counted:
    131             level_gpa = round(weighted_credits/credits_counted, 2)
     131            level_gpa = round(weighted_credits/credits_counted, 3)
    132132        return level_gpa, credits_counted, weighted_credits
    133133
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r10553 r10586  
    803803        self.assertEqual(self.student['studycourse']['100'].gpa_params_rectified[2], 82.0)
    804804        # sgpa = 82 / 23
    805         self.assertEqual(self.student['studycourse']['100'].gpa_params_rectified[0], 3.57)
     805        self.assertEqual(self.student['studycourse']['100'].gpa_params_rectified[0], 3.565)
    806806        # Carry-over courses will be collected when next level is created
    807807        self.browser.open(self.student_path + '/studycourse/manage')
Note: See TracChangeset for help on using the changeset viewer.