import json
from datetime import datetime
def generate_html_report(json_data, output_file):
# Extract input filename from first check
input_file_path = json_data['checks'][0]['config']['input_file']
input_filename = input_file_path.split('/')[-1] # Get just the filename
# HTML template with Bootstrap for styling
html_template = f'''
')
return '\n'.join(items)
# Example usage
if __name__ == "__main__":
with open('input_report.json') as f:
data = json.load(f)
generate_html_report(data, 'qc_report.html')