def bart_info(): bart = BartApi() dbrk = bart.etd("DBRK") result = {} for x in dbrk: destination = x['destination'] value = (x['estimates'][0]['hexcolor'], [train['minutes'] for train in x['estimates']][0:2]) result[destination] = value return result
def setUp(self): self.bart = BartApi() self._cur_sched = None
def setUp(self): self.bart = BartApi()