Skip to content

Commit

Permalink
Other test for improve memory managment
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Sep 27, 2024
1 parent 26f533f commit d11a092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plm/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import string
import os
import io
import binascii
from base64io import Base64IO
import time
import json
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit d11a092

Please sign in to comment.