Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JK_Report
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vaisakh.nair
JK_Report
Commits
849661db
Commit
849661db
authored
May 12, 2023
by
vaisakh.nair
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Packer counts summarized and repot date changed.
parent
e650963a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
create_report.py
create_report.py
+7
-2
No files found.
create_report.py
View file @
849661db
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment