Commit 849661db authored by vaisakh.nair's avatar vaisakh.nair 🎯

Packer counts summarized and repot date changed.

parent e650963a
...@@ -67,10 +67,15 @@ class DailyReportGenerator: ...@@ -67,10 +67,15 @@ class DailyReportGenerator:
def create_excel_report(self): def create_excel_report(self):
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")
# Calculate the previous day's date
previous_day = current_time - timedelta(days=1)
report_date = previous_day.strftime("%Y-%m-%d")
report_file = f"daily_report_{report_date}.xlsx" report_file = f"daily_report_{report_date}.xlsx"
wb = load_workbook(self.template_file) wb = load_workbook(self.template_file)
......
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