Find all exams, count is 0

This commit is contained in:
Thomas Forgione 2017-10-19 16:49:32 +02:00
parent 68cc758ab1
commit b8815ed6ac
No known key found for this signature in database
GPG Key ID: C75CD416BD1FFCE1
1 changed files with 3 additions and 4 deletions

View File

@ -48,9 +48,8 @@ cal.getFactor = function(type) {
switch (type) {
case cal.Type.TD:
case cal.Type.TP:
case cal.Type.Other.BE:
case cal.Type.Other.Examen:
return 1;
case cal.Type.Other.BE: return 1;
case cal.Type.Other.Examen: return 0;
case cal.Type.CTD: return 1.25;
case cal.Type.CM: return 1.5;
default: return 0;
@ -69,7 +68,7 @@ cal.getTypeFromName = function(name) {
return cal.Type.CM;
} else if (name.indexOf("BE") !== -1) {
return cal.Type.Other.BE;
} else if (name.indexOf("Examen") !== -1) {
} else if (name.toLowerCase().indexOf("exam") !== -1) {
return cal.Type.Other.Examen;
} else {
return cal.Type.Unkown;