Commit fd6f721e authored by Robert Hitt's avatar Robert Hitt

Fixed some logic in FacilityPresenter

- really have no clue what I was thinking when I committed this garbage
  originally
parent eef4c0ce
Pipeline #1344 failed with stages
in 2 minutes and 50 seconds
......@@ -118,14 +118,12 @@ public class FacilityPresenter {
if(o.getStartTime().equals("00:00:00") && o.getEndTime().equals("23:59:59")
|| o.getEndTime().equals("00:00:00")) {
doesNotClose = true;
}
// check to make sure the facility is open every day of the week
// so, if the start day is 0 and the end day is 6, 6 - 0 + 1 == 7
counter += (o.getEndDay() - o.getStartDay()) + 1;
counter++;
}
}
if(counter != 7) {
if(counter != openTimesList.size()) {
doesNotClose = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment