List is not a valid input type for timings, expecting object

This commit is contained in:
Louis-Philippe Huberdeau 2017-07-19 14:12:30 -04:00
parent e38267a61e
commit e21f67715c

View File

@ -72,7 +72,7 @@ class Entry:
"request": self.request.toDict(),
"response": self.response.toDict(),
"cache": {},
"timings": [],
"timings": {},
"time": int(1000 * (self.endTime - self.startTime)),
"startedDateTime": "%s%s" % (datetime.datetime.fromtimestamp(self.startTime).isoformat(), time.strftime("%z")) if self.startTime else None
}