diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-10-08 16:28:33 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-10-08 16:28:33 -0700 |
commit | 984a1b157990f42f8c57815f4b3c00f6455a114f (patch) | |
tree | aa93850218baed26d9a4a7221faffb1789a473f3 /python/fatcat_tools/cleanups/files.py | |
parent | b9279efacdee9bf8038203d6efe9dc105cc4dce3 (diff) | |
download | fatcat-984a1b157990f42f8c57815f4b3c00f6455a114f.tar.gz fatcat-984a1b157990f42f8c57815f4b3c00f6455a114f.zip |
file cleanup tweaks to actually run
Diffstat (limited to 'python/fatcat_tools/cleanups/files.py')
-rw-r--r-- | python/fatcat_tools/cleanups/files.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_tools/cleanups/files.py b/python/fatcat_tools/cleanups/files.py index c2733ba0..ec7e9064 100644 --- a/python/fatcat_tools/cleanups/files.py +++ b/python/fatcat_tools/cleanups/files.py @@ -13,8 +13,7 @@ class FileCleaner(EntityCleaner): def __init__(self, api, **kwargs): - eg_desc = kwargs.pop('editgroup_description', - "Automated cleanup of file entities (eg, remove bad URLs)") + eg_desc = kwargs.pop('editgroup_description', None) or "Automated cleanup of file entities (eg, remove bad URLs)" eg_extra = kwargs.pop('editgroup_extra', dict()) eg_extra['agent'] = eg_extra.get('agent', 'fatcat_tools.FileCleaner') super().__init__(api, @@ -69,6 +68,6 @@ class FileCleaner(EntityCleaner): self.counts['skip-revision'] += 1 return 0 - self.update_file(self.get_editgroup_id(), entity.ident, entity) + self.api.update_file(self.get_editgroup_id(), entity.ident, entity) return 1 |