Skip to content

Commit

Permalink
Merge pull request #1139 from bcgov/dev-MD-3350
Browse files Browse the repository at this point in the history
3350 - Remove NR and duplicate from summary
  • Loading branch information
milosdes authored Sep 17, 2024
2 parents ea1dab2 + a0aa3fc commit e10a070
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e10a070

Please sign in to comment.