porcej / afd-dashboard-server

A Chalk.js based dashboard built for the Alexandria, VA Fire Department.
MIT License
1 stars 0 forks source link

Some non-working codes showing up as working. #12

Open porcej opened 6 years ago

porcej commented 6 years ago

The Workforce Telestaff 'working' seams to indicate that a work code is turned on while 'nonWorking' indicates that the person attached to that work code is no on duty. Instead of parsing work codes to determine if someone is on duty we should look for the nonWorking code for persons not on duty and assume all other persons are on duty.

porcej commented 6 years ago

Updated the way festis and webstaff.js parse telestaff data to use the nonWorking (isWorking in webstaff.js) field to decide if a member is working today.