Changeset 2780


Ignore:
Timestamp:
27 Nov 2007, 00:06:01 (17 years ago)
Author:
joachim
Message:

check score

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTables.py

    r2766 r2780  
    13351335                credits = int(brain.credits)
    13361336                total_credits += credits
    1337                 if str(brain.score).isdigit():
    1338                     score = int(brain.score)
    1339 
     1337                score = getattr(brain,'score',0)
     1338                if score and str(score).isdigit() and int(score) > 0:
     1339                    score = int(score)
    13401340                    grade,weight = self.getGradesFromScore(score)
    13411341                    if weight:
     
    13441344                        d['grade'] = grade
    13451345                        d['score'] = score
    1346 
    13471346            d['coe'] = ''
    13481347            if brain.core_or_elective:
Note: See TracChangeset for help on using the changeset viewer.