Commit c945b49 1 parent 75d3ae6 commit c945b49 Copy full SHA for c945b49
File tree 1 file changed +6
-12
lines changed
src/open_inwoner/cms/cases/views
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,12 @@ def get_submissions(self) -> list[SubmissionWithApiGroup]:
125
125
for task in concurrent .futures .as_completed (futures ):
126
126
try :
127
127
group_for_task = all_api_groups [futures .index (task )]
128
- subs_with_api_group . extend (
129
- [
128
+ for row in task . result ():
129
+ subs_with_api_group . append (
130
130
SubmissionWithApiGroup (
131
131
submission = row , api_group = group_for_task
132
132
)
133
- for row in task .result ()
134
- ]
135
- )
136
-
133
+ )
137
134
except BaseException :
138
135
logger .exception ("Error fetching and pre-processing cases" )
139
136
@@ -180,13 +177,10 @@ def get_cases(self) -> list[ZaakWithApiGroup]:
180
177
):
181
178
group_for_task = all_api_groups [futures .index (task )]
182
179
try :
183
- cases_with_api_group . extend (
184
- [
180
+ for row in task . result ():
181
+ cases_with_api_group . append (
185
182
ZaakWithApiGroup (zaak = row , api_group = group_for_task )
186
- for row in task .result ()
187
- ]
188
- )
189
-
183
+ )
190
184
except BaseException :
191
185
logger .exception (
192
186
"Error while fetching and pre-processing cases for API group %s" ,
You can’t perform that action at this time.
0 commit comments