Commit 04d3ad86 authored by vaisakh.nair's avatar vaisakh.nair 🎯

new changes in headers and report_date

parent 930ded8e
...@@ -71,6 +71,8 @@ class DailyReportGenerator: ...@@ -71,6 +71,8 @@ class DailyReportGenerator:
report_file = 'daily_report.xlsx' report_file = 'daily_report.xlsx'
current_time = datetime.now() current_time = datetime.now()
report_date = current_time.strftime("%Y-%m-%d")
start_time = datetime(current_time.year, current_time.month, current_time.day - 1, 6, 0, 0) start_time = datetime(current_time.year, current_time.month, current_time.day - 1, 6, 0, 0)
end_time = datetime(current_time.year, current_time.month, current_time.day, 6, 0, 0) end_time = datetime(current_time.year, current_time.month, current_time.day, 6, 0, 0)
...@@ -82,6 +84,9 @@ class DailyReportGenerator: ...@@ -82,6 +84,9 @@ class DailyReportGenerator:
sheet.add_image(logo_image, 'A1') sheet.add_image(logo_image, 'A1')
sheet.merge_cells('A1:C3') sheet.merge_cells('A1:C3')
# Set report date
sheet['I6'] = report_date
# Add headings # Add headings
sheet['D4'] = 'JK CEMENT WORKS, NIMBAHERA RAJASTHAN' sheet['D4'] = 'JK CEMENT WORKS, NIMBAHERA RAJASTHAN'
sheet['D4'].font = sheet['D1'].font.copy(bold=True) sheet['D4'].font = sheet['D1'].font.copy(bold=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment