[kemonoparty] fix deleting 'name' in orginal objects (#5103)
... when computing 'revision_hash'
regression caused by 3d68eda4
dict.copy() only creates a shallow copy
I know that and still managed to get I wrong ...
This commit is contained in:
@@ -240,7 +240,9 @@ class KemonopartyExtractor(Extractor):
|
||||
rev.pop("added", None)
|
||||
rev.pop("next", None)
|
||||
rev.pop("prev", None)
|
||||
rev["file"] = rev["file"].copy()
|
||||
rev["file"].pop("name", None)
|
||||
rev["attachments"] = [a.copy() for a in rev["attachments"]]
|
||||
for a in rev["attachments"]:
|
||||
a.pop("name", None)
|
||||
return util.sha1(self._json_dumps(rev))
|
||||
|
||||
Reference in New Issue
Block a user