diff --git a/api/reviewer_api/schemas/finalpackage.py b/api/reviewer_api/schemas/finalpackage.py index bfb33458..cf74b9e8 100644 --- a/api/reviewer_api/schemas/finalpackage.py +++ b/api/reviewer_api/schemas/finalpackage.py @@ -32,7 +32,6 @@ class FinalPackageSchema(Schema): ) summarydocuments = fields.Nested(SummarySchema, allow_none=True) redactionlayerid = fields.Int(data_key="redactionlayerid", allow_none=False) - pdfstitchjobattributes = fields.Nested(FeeOverrideSchema, allow_none=True, many=False) requesttype = fields.Str(data_key="requesttype", allow_none=False) pdfstitchjobattributes = fields.Nested(FeeOverrideSchema, allow_none=True, many=False) diff --git a/api/reviewer_api/services/radactionservice.py b/api/reviewer_api/services/radactionservice.py index cb064ad4..47fe3153 100644 --- a/api/reviewer_api/services/radactionservice.py +++ b/api/reviewer_api/services/radactionservice.py @@ -159,7 +159,6 @@ def __preparemessageforsummaryservice(self, messageschema, userinfo, job): "attributes": to_json(messageschema["attributes"]), "summarydocuments": json.dumps(messageschema["summarydocuments"]), "redactionlayerid": json.dumps(messageschema["redactionlayerid"]), - "feeoverridereason":feeoverridereason, "requesttype": messageschema["requesttype"], "feeoverridereason":feeoverridereason } diff --git a/computingservices/DocumentServices/rstreamio/message/schemas/redactionsummary.py b/computingservices/DocumentServices/rstreamio/message/schemas/redactionsummary.py index b3a6d67f..71877038 100644 --- a/computingservices/DocumentServices/rstreamio/message/schemas/redactionsummary.py +++ b/computingservices/DocumentServices/rstreamio/message/schemas/redactionsummary.py @@ -43,7 +43,6 @@ def __init__(self, jobid, requestid, ministryrequestid, category, requestnumber, self.attributes = attributes self.summarydocuments = summarydocuments self.redactionlayerid = redactionlayerid - self.feeoverridereason = feeoverridereason self.requesttype = requesttype self.feeoverridereason = feeoverridereason diff --git a/computingservices/ZippingServices/services/zipperservice.py b/computingservices/ZippingServices/services/zipperservice.py index 312ad756..e1f2ed01 100644 --- a/computingservices/ZippingServices/services/zipperservice.py +++ b/computingservices/ZippingServices/services/zipperservice.py @@ -172,21 +172,4 @@ def __getzipfilepath(foldername, filename): foldername.capitalize() + "/" + filename + ".zip" if foldername is not None else filename + ".zip" - ) - - -def __removesensitivecontent(documentbytes): - # clear metadata - reader2 = PyPDF2.PdfReader(BytesIO(documentbytes)) - # Check if metadata exists. - if reader2.metadata is not None: - # Create a new PDF file without metadata. - writer = PyPDF2.PdfWriter() - # Copy pages from the original PDF to the new PDF. - for page_num in range(len(reader2.pages)): - page = reader2.pages[page_num] - writer.add_page(page) - #writer.remove_links() # to remove comments. - buffer = BytesIO() - writer.write(buffer) - return buffer.getvalue() \ No newline at end of file + ) \ No newline at end of file