The else statement was causing the wrong url to be used in production.
REFS SDEV-398
Discovered some bugs in the utility file
still have to work on the table for the late tool
FIXES SDEV-418
The particular example in the ticket was an odd case where there was only one shift actually scheduled.