diff options
author | Martin Czygan <martin@archive.org> | 2020-09-03 21:05:32 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2020-09-03 21:05:32 +0000 |
commit | cb03c66615e5316cd2a8f9c91420c9c1b5efe731 (patch) | |
tree | d3e231be0179057ddd0f869f0e11a9d12cc485e6 /python/fatcat_tools/importers/file_meta.py | |
parent | 2e8e22b798c190a84e6cdcd6b66fd64f43f2631b (diff) | |
parent | eb0099e4089efd07385379e105d4e30d1997408c (diff) | |
download | fatcat-cb03c66615e5316cd2a8f9c91420c9c1b5efe731.tar.gz fatcat-cb03c66615e5316cd2a8f9c91420c9c1b5efe731.zip |
Merge branch 'bnewbold-file-meta-cleanups' into 'master'
generic file entity clean-ups as part of file_meta importer
See merge request webgroup/fatcat!82
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 |