ICTatRTI / coconut-analytics

Browserified & backboned version of coconut-reports
Other
2 stars 3 forks source link

Analysis Report showing incorrect figures for Household visits complete #320

Closed scloo closed 6 years ago

scloo commented 6 years ago

The figures on household visit complete is too low at 90 whereas in the Case Followup report, there are over 2000+ cases completed.

Issue brought up by Humphrey

scloo commented 6 years ago

Previous fix of testing for boolean true works for the later case docs. However earlier docs also have the value "true" instead of boolean true.

Added an extra check for the string value of "true" solved the problem.

scloo commented 6 years ago

There were other places affected, as highlighted by Humphrey. Found and fixed the codes causing issue.

gmcressman commented 6 years ago

Checks correctly against the data.