Skip to content
Snippets Groups Projects

Merge new updates into master

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -644,9 +644,9 @@ disciplinesApp.get('/', rqf.parse(), (req, res, next) => {
if (req.tmp_discipline){
Object.keys(r).forEach(k => {
if (/^total_suitable/.test(k)) // if k starts with total_suitable
if (/^total_suitable_/.test(k)) // if k starts with total_suitable
obj.sum_suitable += parseInt(r[k]);
else if (/^total_/.test(k))
else if (/^total_(?!suitable)/.test(k))
obj.sum_total += parseInt(r[k]);
})
} else {
Loading