LeeMendelowitz / DCMetroMetrics

DC Metro Metrics is a project dedicated to collecting and sharing publicly available data related to the DC WMATA Metrorail system.
GNU General Public License v2.0
40 stars 11 forks source link

Outage days incomplete for active outages #22

Open LeeMendelowitz opened 9 years ago

LeeMendelowitz commented 9 years ago

Outage class does not generate the full list of outage days when the outage is still ongoing. The generated json for the unit's performance summary does not include the outage days of an active outage, and as a result the "Daily Escalator Outages" visualization has some stale information.

For example, if an escalator breaks on Jan 1 and is fixed Jan 5th, the outage days of Jan 1, 2, 3, 4, 5 don't appear in the visualization until the outage is over.

LeeMendelowitz commented 9 years ago

The issue is setting the end_time on the Outage class. Since the outage isn't over, end_time of the underlying UnitStatus is None.