Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace deprecated method #4630

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import maya
import json
from html.parser import HTMLParser
import html
from datetime import datetime
class applicantcorrespondenceservice:

Expand Down Expand Up @@ -57,8 +57,7 @@ def updateapplicantcorrespondencelog(self, correspondenceid, content):
def getapplicantcorrespondencelogbyid(self, applicantcorrespondenceid):
applicantcorrespondence = FOIApplicantCorrespondence.getapplicantcorrespondencebyid(applicantcorrespondenceid)
(_correspondencemessagejson, _isjson) = self.__getjsonobject(applicantcorrespondence["correspondencemessagejson"])
parser = HTMLParser()
emailhtml_decoded_string = parser.unescape(self.__getvaluefromjson(_correspondencemessagejson, 'emailhtml'))
emailhtml_decoded_string = html.unescape(self.__getvaluefromjson(_correspondencemessagejson, 'emailhtml'))
return emailhtml_decoded_string if _isjson else _correspondencemessagejson

def getlatestapplicantcorrespondence(self, ministryid):
Expand Down
Loading