Skip to content

Commit

Permalink
Fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Sep 10, 2024
1 parent e155c49 commit 5ce5211
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/palace/manager/service/redis/models/marc.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,10 @@ def append_buffers(self, data: Mapping[str, str]) -> dict[str, int]:

set_results = {}
with self._pipeline(begin_transaction=False) as pipe:
existing_uploads: list[str] = [
self._unescape_path(r)
for r in self._parse_value_or_raise(
pipe.json().objkeys(self.key, self._uploads_json_key)
)
]
existing_uploads: list[str] = self._parse_value_or_raise(
pipe.json().objkeys(self.key, self._uploads_json_key)
)
existing_uploads = [self._unescape_path(p) for p in existing_uploads]
pipe.multi()
for key, value in data.items():
if value == "":
Expand Down

0 comments on commit 5ce5211

Please sign in to comment.