in dagify/converter/utils.py [0:0]
def generate_report_utils(tables, output_dir, lines=None, warning_line=None):
""" Function to open a file and write the contents of the report in the file """
job_table, schedule_table = tables[0], tables[1]
report_file = f"{output_dir}/Detailed-Report.txt" # prefix
with open(report_file, "w") as final_report:
if lines:
for line in lines:
final_report.write(line + '\n')
final_report.write('\n' + str(job_table) + '\n')
if warning_line:
final_report.write('\n' + warning_line + '\n')
final_report.write('\n' + str(schedule_table) + '\n')