File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/sentry/incidents/utils Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def get_eap_aggregation_value(
101
101
102
102
rpc_response = snuba_rpc .timeseries_rpc ([rpc_time_series_request ])[0 ]
103
103
if len (rpc_response .result_timeseries ):
104
- return rpc_response .result_timeseries [0 ].data_points [0 ].data
104
+ comparison_aggregate = rpc_response .result_timeseries [0 ].data_points [0 ].data
105
105
106
106
except Exception :
107
107
logger .exception (
@@ -113,6 +113,7 @@ def get_eap_aggregation_value(
113
113
},
114
114
)
115
115
return None
116
+ return comparison_aggregate
116
117
117
118
118
119
def get_aggregation_value (
@@ -147,7 +148,7 @@ def get_aggregation_value(
147
148
)
148
149
query_builder .limit = Limit (1 )
149
150
results = query_builder .run_query (referrer = "subscription_processor.comparison_query" )
150
- return list (results ["data" ][0 ].values ())[0 ]
151
+ comparison_aggregate = list (results ["data" ][0 ].values ())[0 ]
151
152
152
153
except Exception :
153
154
logger .exception (
@@ -159,6 +160,7 @@ def get_aggregation_value(
159
160
},
160
161
)
161
162
return None
163
+ return comparison_aggregate
162
164
163
165
164
166
def get_comparison_aggregation_value (
You can’t perform that action at this time.
0 commit comments