Fix Carddav class for Python integration tests

This commit is contained in:
Francis Lachapelle
2017-09-12 09:32:29 -04:00
parent b896897c3e
commit 3fa0baa396

View File

@@ -124,9 +124,11 @@ class Carddav:
content = self._get(url)
self.fields = content['fields']
self.events = []
for month in content['events']
for day in content['events'][month]
tmp_events = content['events'][month][day]
months = content['events']
for month in months.keys():
days = months[month]['days']
for day in days.keys():
tmp_events = days[day]['events']
self.events.extend(dict(zip(self.fields, event)) for event in tmp_events)
return self.events