diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-04 18:01:49 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-09 14:17:35 -0800 |
commit | 766bc9c6ebe22a29c39c91941f12eed29b85a41d (patch) | |
tree | 5d5eda673d4b4fa687a9fc8286f74be55776f870 | |
parent | 91139d7fcaab707f694985d5ca49016cc87946cc (diff) | |
download | fatcat-766bc9c6ebe22a29c39c91941f12eed29b85a41d.tar.gz fatcat-766bc9c6ebe22a29c39c91941f12eed29b85a41d.zip |
wayback cleanup: actually update entity
-rw-r--r-- | python/fatcat_tools/cleanups/file_short_wayback_ts.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/fatcat_tools/cleanups/file_short_wayback_ts.py b/python/fatcat_tools/cleanups/file_short_wayback_ts.py index ab1b2a5f..d8b8ab9d 100644 --- a/python/fatcat_tools/cleanups/file_short_wayback_ts.py +++ b/python/fatcat_tools/cleanups/file_short_wayback_ts.py @@ -27,7 +27,7 @@ class FileShortWaybackTimestampCleanup(EntityImporter): def __init__(self, api: ApiClient, **kwargs): - eg_desc = kwargs.pop("editgroup_description", None) or "Expand short wayback timestamps" + eg_desc = kwargs.pop("editgroup_description", None) or "Expand trunacted timestamps in wayback URLs" eg_extra = kwargs.pop("editgroup_extra", dict()) eg_extra["agent"] = eg_extra.get( "agent", "fatcat_tools.FileShortWaybackTimestampCleanup" @@ -150,7 +150,9 @@ class FileShortWaybackTimestampCleanup(EntityImporter): # these corrections (entity dump) contains no dupes if not self.testing_mode: - self.api.update_file(self.get_editgroup_id(), existing.ident, existing) + # note: passing 'fe' instead of 'existing' here, which is not + # usually how it goes! + self.api.update_file(self.get_editgroup_id(), fe.ident, fe) self.counts["update"] += 1 return False |