From 5ce5211b3d7a56f346c430f1098dad923aaa4c1f Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Tue, 10 Sep 2024 10:42:47 -0300 Subject: [PATCH] Fix mypy issue --- src/palace/manager/service/redis/models/marc.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/palace/manager/service/redis/models/marc.py b/src/palace/manager/service/redis/models/marc.py index e8b977d2d..3127558c7 100644 --- a/src/palace/manager/service/redis/models/marc.py +++ b/src/palace/manager/service/redis/models/marc.py @@ -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 == "":