diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-09-02 19:28:19 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-09-02 19:28:19 -0700 |
commit | eb0099e4089efd07385379e105d4e30d1997408c (patch) | |
tree | d3e231be0179057ddd0f869f0e11a9d12cc485e6 /python/fatcat_tools/importers/file_meta.py | |
parent | 2e8e22b798c190a84e6cdcd6b66fd64f43f2631b (diff) | |
download | fatcat-eb0099e4089efd07385379e105d4e30d1997408c.tar.gz fatcat-eb0099e4089efd07385379e105d4e30d1997408c.zip |
generic file entity clean-ups as part of file_meta importer
Diffstat (limited to 'python/fatcat_tools/importers/file_meta.py')
-rw-r--r-- | python/fatcat_tools/importers/file_meta.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/file_meta.py b/python/fatcat_tools/importers/file_meta.py index 628ebde8..9f4b9e06 100644 --- a/python/fatcat_tools/importers/file_meta.py +++ b/python/fatcat_tools/importers/file_meta.py @@ -70,6 +70,9 @@ class FileMetaImporter(EntityImporter): existing.size = existing.size or fe.size existing.mimetype = existing.mimetype or fe.mimetype + # generic file entity cleanups + existing = self.generic_file_cleanups(existing) + self.api.update_file(self.get_editgroup_id(), existing.ident, existing) self.counts['update'] += 1 return False |