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
3eb2cddb
Commit
3eb2cddb
authored
May 18, 2023
by
vaisakh.nair
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
folder path changes and requirements.txt added
parent
4e57bf46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
scripts/__pycache__/create_report_email_utility.cpython-38.pyc
...ts/__pycache__/create_report_email_utility.cpython-38.pyc
+0
-0
scripts/create_report.py
scripts/create_report.py
+6
-0
scripts/create_report_email_utility.py
scripts/create_report_email_utility.py
+7
-0
No files found.
scripts/__pycache__/create_report_email_utility.cpython-38.pyc
View file @
3eb2cddb
No preview for this file type
scripts/create_report.py
View file @
3eb2cddb
...
...
@@ -132,6 +132,12 @@ class DailyReportGenerator:
packer_row
=
9
+
packer_names
.
index
(
packer_name
)
*
3
sheet
[
f
'F{packer_row}'
]
=
count
# Set print area to include all cells with data
max_row
=
sheet
.
max_row
max_column
=
sheet
.
max_column
print_area
=
f
"A1:{openpyxl.utils.get_column_letter(max_column)}{max_row}"
sheet
.
print_area
=
print_area
# Save the report file
wb
.
save
(
report_file
)
...
...
scripts/create_report_email_utility.py
View file @
3eb2cddb
...
...
@@ -2,6 +2,7 @@ import pandas as pd
from
pymongo
import
MongoClient
from
datetime
import
datetime
,
timedelta
import
os
import
openpyxl
from
openpyxl
import
load_workbook
from
openpyxl.drawing.image
import
Image
import
yaml
...
...
@@ -134,6 +135,12 @@ class DailyReportGenerator:
packer_row
=
9
+
packer_names
.
index
(
packer_name
)
*
3
sheet
[
f
'F{packer_row}'
]
=
count
# Set print area to include all cells with data
max_row
=
sheet
.
max_row
max_column
=
sheet
.
max_column
print_area
=
f
"A1:{openpyxl.utils.get_column_letter(max_column)}{max_row}"
sheet
.
print_area
=
print_area
# Save the report file
wb
.
save
(
report_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