Skip to content

Commit

Permalink
fixed uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Jan 5, 2022
1 parent 439c56b commit d7f4fe6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hub/dataload/sources/unii/uploader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from ast import literal_eval
import json
import biothings, config
biothings.config_for_app(config)

Expand All @@ -24,8 +24,7 @@ def load_data(self, data_folder):
assert os.path.exists(infile)
with open(infile, 'r') as f:
for line in f:
doc = literal_eval(line)
yield doc
yield json.loads(line)


@classmethod
Expand Down

0 comments on commit d7f4fe6

Please sign in to comment.