From 5fe767205b6b4671df1b98418afbbbffdedab05e 2019-03-18 11:25:49 From: Marcin Lulek <info@webreactor.eu> Date: 2019-03-18 11:25:49 Subject: [PATCH] report: fix request stats format --- diff --git a/backend/src/appenlight/models/report.py b/backend/src/appenlight/models/report.py index fc27517..ec093a4 100644 --- a/backend/src/appenlight/models/report.py +++ b/backend/src/appenlight/models/report.py @@ -181,7 +181,7 @@ class Report(Base, BaseModel): request_data = data.get("request", {}) self.request = request_data - self.request_stats = data.get("request_stats", {}) + self.request_stats = data.get("request_stats") or {} traceback = data.get("traceback") if not traceback: traceback = data.get("frameinfo")