Skip to content

Commit

Permalink
refactor the method '_should_generate_data' of the class Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna Imshenetska authored and Hanna Imshenetska committed Nov 14, 2024
1 parent ccc58d1 commit 5ebb795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syngen/ml/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ def _should_generate_data(
"""
return any(
[
report in config.get(f"{type_of_process}_settings", {}).get("reports", [])
for report in ReportTypes().infer_report_types
report in ReportTypes().infer_report_types
for config in config_of_tables.values()
for report in config.get(f"{type_of_process}_settings", {}).get("reports", [])
]
)

Expand Down

0 comments on commit 5ebb795

Please sign in to comment.