From 65a06efaf9c6a433fa0c4906ea3c6095c17ece89 Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Fri, 22 Nov 2024 15:27:29 +0530 Subject: [PATCH] chore: correct return return type --- mail_client/mail_client/report/mail_tracker/mail_tracker.py | 2 +- .../mail_client/report/outbound_delay/outbound_delay.py | 4 ++-- .../report/outgoing_mail_summary/outgoing_mail_summary.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mail_client/mail_client/report/mail_tracker/mail_tracker.py b/mail_client/mail_client/report/mail_tracker/mail_tracker.py index 12ca4742..a2d569f9 100644 --- a/mail_client/mail_client/report/mail_tracker/mail_tracker.py +++ b/mail_client/mail_client/report/mail_tracker/mail_tracker.py @@ -91,7 +91,7 @@ def get_columns() -> list[dict]: ] -def get_data(filters: dict | None = None) -> list[list]: +def get_data(filters: dict | None = None) -> list[dict]: filters = filters or {} OM = frappe.qb.DocType("Outgoing Mail") diff --git a/mail_client/mail_client/report/outbound_delay/outbound_delay.py b/mail_client/mail_client/report/outbound_delay/outbound_delay.py index 706b0b0b..dfe52f0c 100644 --- a/mail_client/mail_client/report/outbound_delay/outbound_delay.py +++ b/mail_client/mail_client/report/outbound_delay/outbound_delay.py @@ -11,7 +11,7 @@ from mail_client.utils.user import get_user_mailboxes, has_role, is_system_manager -def execute(filters: dict | None = None) -> tuple[list, list]: +def execute(filters: dict | None = None) -> tuple: columns = get_columns() data = get_data(filters) summary = get_summary(data) @@ -123,7 +123,7 @@ def get_columns() -> list[dict]: ] -def get_data(filters: dict | None = None) -> list[list]: +def get_data(filters: dict | None = None) -> list[dict]: filters = filters or {} OM = frappe.qb.DocType("Outgoing Mail") diff --git a/mail_client/mail_client/report/outgoing_mail_summary/outgoing_mail_summary.py b/mail_client/mail_client/report/outgoing_mail_summary/outgoing_mail_summary.py index d37fc217..b06fcc43 100644 --- a/mail_client/mail_client/report/outgoing_mail_summary/outgoing_mail_summary.py +++ b/mail_client/mail_client/report/outgoing_mail_summary/outgoing_mail_summary.py @@ -113,7 +113,7 @@ def get_columns() -> list[dict]: ] -def get_data(filters: dict | None = None) -> list[list]: +def get_data(filters: dict | None = None) -> list[dict]: filters = filters or {} OM = frappe.qb.DocType("Outgoing Mail")