- Timestamp:
- 19 Nov 2012, 18:08:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r9684 r9687 81 81 82 82 @property 83 def gpa(self): 84 gpa = 0 85 credits_counted = 0 86 for ticket in self.values(): 87 if ticket.score: 88 credits_counted += ticket.credits 89 gpa += ticket.credits * ticket.weight 90 if credits_counted: 91 gpa = float(gpa)/credits_counted 92 return gpa 93 94 @property 83 95 def is_current_level(self): 84 96 try:
Note: See TracChangeset for help on using the changeset viewer.