We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee8140 commit 54f8cb0Copy full SHA for 54f8cb0
src/sentry/seer/anomaly_detection/utils.py
@@ -157,7 +157,8 @@ def format_crash_free_data(data: SnubaTSResult) -> list[TimeSeriesPoint]:
157
158
for time, count in zip(nested_data.get("intervals"), series.get("sum(session)", 0)):
159
date = datetime.strptime(time, "%Y-%m-%dT%H:%M:%SZ")
160
- ts_point = TimeSeriesPoint(timestamp=date.timestamp(), value=count)
+ count_value = 0.0 if count is None else float(count)
161
+ ts_point = TimeSeriesPoint(timestamp=date.timestamp(), value=count_value)
162
formatted_data.append(ts_point)
163
return formatted_data
164
0 commit comments