From 08651c111fba0525040c4546f28a2ddc35be1918 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Mon, 6 Oct 2025 15:18:26 +0530 Subject: [PATCH] made pie chart dynamic --- mailling/config.json | 2 +- mailling/dpr.html | 26 +++++++++++++------------- mailling/project_statistics_report.py | 2 ++ 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/mailling/config.json b/mailling/config.json index b44ccc0..15c3bc4 100644 --- a/mailling/config.json +++ b/mailling/config.json @@ -4,7 +4,7 @@ "PORT": 587, "SENDER_EMAIL": "marcoioitsoft@gmail.com", "SENDER_PASSWORD": "qrtq wfuj hwpp fhqr", - "RECIPIENT_EMAILS": "ashutosh.nehete@marcoaiot.com,vikas@marcoaiot.com,amol@marcosolutions.co.in,vinod@marcofire.in,umesh@marcoaiot.com" + "RECIPIENT_EMAILS": "ashutosh.nehete@marcoaiot.com" }, "API": { "BASE_URL": "https://stageapi.marcoaiot.com/api", diff --git a/mailling/dpr.html b/mailling/dpr.html index 5b6ffd0..c11cdda 100644 --- a/mailling/dpr.html +++ b/mailling/dpr.html @@ -366,8 +366,8 @@
- +

TODAY'S ATTENDANCE

@@ -400,8 +400,8 @@
- +

DAILY TASKS COMPLETED

@@ -446,8 +446,8 @@
-->
- +

PROJECT COMPLETION STATUS

@@ -457,7 +457,7 @@
- +

{{totalCompletedWork}}

/

{{totalPlannedWork}}

@@ -482,8 +482,8 @@
- +

Regularization Pending

@@ -494,8 +494,8 @@
- +

Activity Report Pending

@@ -525,8 +525,8 @@ {% if teamOnSite and teamOnSite|length > 0 %}
- -
+ +

Team Strength on Site

diff --git a/mailling/project_statistics_report.py b/mailling/project_statistics_report.py index 5bed18b..937b3fe 100644 --- a/mailling/project_statistics_report.py +++ b/mailling/project_statistics_report.py @@ -113,6 +113,8 @@ if __name__ == "__main__": project_name = data["projectName"] html = render_template_from_file(template_name,context) + # print(html) + msg = EmailMessage() msg["Subject"] = f"DPR - {api_formatted_date} - {project_name}" msg["From"] = SENDER_EMAIL