summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-12-13 17:42:44 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-12-13 17:42:46 -0800
commit4b2fc499ac77f4b929943b54a4c28b78659468e8 (patch)
tree07ac433a0492c8bce5c6d7f0c02af0cef86e3455 /python/fatcat_tools/importers
parentabb890b9c48f4b3a6b40c796109f82010b0c0143 (diff)
downloadfatcat-4b2fc499ac77f4b929943b54a4c28b78659468e8.tar.gz
fatcat-4b2fc499ac77f4b929943b54a4c28b78659468e8.zip
remove default mimetype from ingest-file importer
We really should just use file_meta result or nothing.
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/ingest.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py
index e5484048..a4258a38 100644
--- a/python/fatcat_tools/importers/ingest.py
+++ b/python/fatcat_tools/importers/ingest.py
@@ -20,7 +20,6 @@ class IngestFileResultImporter(EntityImporter):
**kwargs)
self.default_link_rel = kwargs.get("default_link_rel", "web")
assert self.default_link_rel
- self.default_mimetype = kwargs.get("default_mimetype", None)
self.do_updates = kwargs.get("do_updates", False)
self.require_grobid = require_grobid
if self.require_grobid:
@@ -127,7 +126,7 @@ class IngestFileResultImporter(EntityImporter):
sha1=file_meta['sha1hex'],
sha256=file_meta['sha256hex'],
size=file_meta['size_bytes'],
- mimetype=file_meta['mimetype'] or self.default_mimetype,
+ mimetype=file_meta['mimetype'],
release_ids=[release_ident],
urls=urls,
)