File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,9 @@ def _fixability_score_strategy(
206206 """
207207 all_candidates : list [_ScoredCandidate ] = []
208208
209- for project in projects :
209+ for project_id_batch in chunked ( projects , 100 ) :
210210 groups = Group .objects .filter (
211- project_id = project .id ,
211+ project_id__in = [ p .id for p in project_id_batch ] ,
212212 status = GroupStatus .UNRESOLVED ,
213213 seer_autofix_last_triggered__isnull = True ,
214214 seer_explorer_autofix_last_triggered__isnull = True ,
@@ -221,7 +221,7 @@ def _fixability_score_strategy(
221221 all_candidates .append (
222222 _ScoredCandidate (
223223 group_id = group .id ,
224- project_id = project . id ,
224+ project_id = group . project_id ,
225225 fixability = group .seer_fixability_score or 0.0 ,
226226 times_seen = group .times_seen ,
227227 severity = (group .priority or 0 ) / 75.0 ,
You can’t perform that action at this time.
0 commit comments