From d11a092de7c7ed5c2d09492ea0f9ef1e23f44ac6 Mon Sep 17 00:00:00 2001 From: Matteo Boscolo Date: Fri, 27 Sep 2024 15:59:45 +0200 Subject: [PATCH] Other test for improve memory managment --- plm/models/ir_attachment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plm/models/ir_attachment.py b/plm/models/ir_attachment.py index d2b516ee..d4819c02 100755 --- a/plm/models/ir_attachment.py +++ b/plm/models/ir_attachment.py @@ -21,6 +21,7 @@ import string import os import io +import binascii from base64io import Base64IO import time import json @@ -121,6 +122,7 @@ def _compute_datas(self): return for attach in self: + attach.datas = binascii.a2b_base64(attach.raw or b'') attach.datas = self.get_stream_b64encode(attach.raw or b'') def get_stream_b64encode(self, from_stream):