penn-sdk-python icon indicating copy to clipboard operation
penn-sdk-python copied to clipboard

Fix problems in OpenData Dining API

Open joshdoman opened this issue 7 years ago • 0 comments

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"

joshdoman avatar Mar 02 '18 17:03 joshdoman