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
04d3ad86
Commit
04d3ad86
authored
May 11, 2023
by
vaisakh.nair
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new changes in headers and report_date
parent
930ded8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
create_report.py
create_report.py
+5
-0
No files found.
create_report.py
View file @
04d3ad86
...
...
@@ -71,6 +71,8 @@ class DailyReportGenerator:
report_file
=
'daily_report.xlsx'
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
)
end_time
=
datetime
(
current_time
.
year
,
current_time
.
month
,
current_time
.
day
,
6
,
0
,
0
)
...
...
@@ -82,6 +84,9 @@ class DailyReportGenerator:
sheet
.
add_image
(
logo_image
,
'A1'
)
sheet
.
merge_cells
(
'A1:C3'
)
# Set report date
sheet
[
'I6'
]
=
report_date
# Add headings
sheet
[
'D4'
]
=
'JK CEMENT WORKS, NIMBAHERA RAJASTHAN'
sheet
[
'D4'
]
.
font
=
sheet
[
'D1'
]
.
font
.
copy
(
bold
=
True
)
...
...
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