diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-13 12:43:12 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-13 12:43:12 -0800 |
commit | e8a2925394f4cce0b8b4514f58d2bd19f9d7490b (patch) | |
tree | c060f01ac5e3e63d08a28cf38d0ade55267fc893 /python/fatcat_tools/importers/grobid_metadata.py | |
parent | 572fdc7caf74d9539e642e97855d8c8ba94ff93a (diff) | |
download | fatcat-e8a2925394f4cce0b8b4514f58d2bd19f9d7490b.tar.gz fatcat-e8a2925394f4cce0b8b4514f58d2bd19f9d7490b.zip |
use Counter object instead of per-metric ints
Diffstat (limited to 'python/fatcat_tools/importers/grobid_metadata.py')
-rw-r--r-- | python/fatcat_tools/importers/grobid_metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py index 56b2ee02..6d635479 100644 --- a/python/fatcat_tools/importers/grobid_metadata.py +++ b/python/fatcat_tools/importers/grobid_metadata.py @@ -163,6 +163,6 @@ class FatcatGrobidMetadataImporter(FatcatImporter): # created it fe.releases.append(release_entity.ident) file_entity = self.api.create_file(fe, editgroup=editgroup) - self.insert_count = self.insert_count + 1 + self.counts['insert'] += 1 # NB: batch mode not implemented |