Skip to content

Commit 27f2feb

Browse files
author
Val Brodsky
committed
Also fix results
1 parent 0b88ab4 commit 27f2feb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/labelbox/src/labelbox/schema/export_task.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,10 @@ def result(self):
609609
StreamType.RESULT, metadata_header),
610610
_MultiGCSFileReader(),
611611
JsonConverter(),
612-
).start(stream_handler=lambda output: data.append(
613-
json.loads(output.json_str)))
612+
).start(stream_handler=lambda output: [
613+
data.append(json.loads(row)) for row in output.json_str.split(
614+
'\n') if row
615+
])
614616
return data
615617
return self._task.result_url
616618

0 commit comments

Comments
 (0)