From a0aa3fcad3b9f769f9bdca81b87682d549a21d75 Mon Sep 17 00:00:00 2001 From: Milos Despotovic Date: Mon, 9 Sep 2024 14:54:03 -0700 Subject: [PATCH] Remove NR and duplicate from summary --- .../DocumentServices/services/dts/redactionsummary.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/computingservices/DocumentServices/services/dts/redactionsummary.py b/computingservices/DocumentServices/services/dts/redactionsummary.py index 89fded2ef..539a53e9c 100644 --- a/computingservices/DocumentServices/services/dts/redactionsummary.py +++ b/computingservices/DocumentServices/services/dts/redactionsummary.py @@ -7,6 +7,11 @@ class redactionsummary(): def prepareredactionsummary(self, message, documentids, pageflags, programareas): + def removeduplicateandnr(pageflag): + if pageflag['name'] != 'Duplicate' and pageflag['name'] != 'Not Responsive': + return True + return False + pageflags = list(filter(removeduplicateandnr, pageflags)) _ismcfpersonalrequest = True if message.bcgovcode == 'mcf' and message.requesttype == 'personal' else False if _ismcfpersonalrequest and message.category == "responsepackage": redactionsummary = self.__packagesummaryforcfdrequests(message, documentids)