Skip to content

Commit

Permalink
FIX receive_fe in case of base64 files coming from SDI. Without this …
Browse files Browse the repository at this point in the history
…change, every SDI file would be doubly encoded in base64.

file_name_content_dict must be base64-encoded, as described in its documentation.
Next methods must handle the "real" content, in order to process ZIP files also.
  • Loading branch information
eLBati committed Sep 15, 2022
1 parent 78e368a commit 4f8ff49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_it_sdi_channel/models/sdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def receive_fe(
for file_name, file_content in file_name_content_dict.items():
attachments_values = self._process_single_fe(
file_name,
file_content,
base64.decodebytes(file_content),
**default_values,
)
if attachments_values:
Expand Down

0 comments on commit 4f8ff49

Please sign in to comment.