Find all exams, count is 0
This commit is contained in:
parent
68cc758ab1
commit
b8815ed6ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue