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 @@ -200,7 +200,7 @@ def build_scenarios(
200
200
try :
201
201
# build a large matric of True/False options
202
202
# based on the provided conditions
203
- scenarios_returned = 0
203
+ scenarios_attempted = 0
204
204
if region :
205
205
products = itertools .starmap (
206
206
self .build_scenerios_on_region ,
@@ -229,11 +229,11 @@ def build_scenarios(
229
229
# if the scenario can be satisfied then return it
230
230
if satisfiable (cnf ):
231
231
yield {** params , ** conditions_set }
232
- scenarios_returned += 1
233
232
233
+ scenarios_attempted += 1
234
234
# On occassions people will use a lot of non-related conditions
235
235
# this is fail safe to limit the maximum number of responses
236
- if scenarios_returned >= self ._max_scenarios :
236
+ if scenarios_attempted >= self ._max_scenarios :
237
237
return
238
238
except KeyError :
239
239
# KeyError is because the listed condition doesn't exist because of bad
You can’t perform that action at this time.
0 commit comments