penn-sdk-python
penn-sdk-python copied to clipboard
Fix problems in OpenData Dining API
The OpenData dining API occasionally returns times that conflict (example below). If one of the times is "Closed," all times that conflict with "Closed" should be removed.
{
"date": "2018-03-02",
"meal": [
{
"close": "14:00:00",
"open": "11:00:00",
"type": "Lunch"
},
{
"close": "19:30:00",
"open": "17:00:00",
"type": "Dinner"
},
{
"close": "23:59:00",
"open": "14:00:00",
"type": "Closed"
}
]
}
],
"facilityURL": "http://university-of-pennsylvania.cafebonappetit.com/cafe/1920-commons/",
"id": 593,
"name": "1920 Commons",
"venueType": "residential",
"weeklyMenuURL": "http://www.cafebonappetit.com/feeds/weekly/593"