File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ venv.bak/
137137.spyderproject
138138.spyproject
139139
140+ # VS Code settings
141+ .vscode /
142+
140143# Rope project settings
141144.ropeproject
142145
Original file line number Diff line number Diff line change 33"""Data model classes returned by the client."""
44from __future__ import annotations
55
6+ import base64
67import dataclasses
78import hashlib
89import json
@@ -110,8 +111,13 @@ def calculate_checksum(self) -> str:
110111 del data ["checksum" ]
111112 del data ["id" ]
112113
113- for at in data ["attachments" ]:
114- del at ["id" ]
114+ for attachment in data ["attachments" ]:
115+ try :
116+ attachment ["content_bytes" ] = base64 .b64encode (
117+ attachment ["content_bytes" ]
118+ ).decode ("utf8" )
119+ except TypeError :
120+ pass
115121
116122 data = dict (sorted (data .items ()))
117123
You can’t perform that action at this time.
0 commit comments