Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions observe_export/observe_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,9 @@ def get_crawling_command(start_time: datetime, end_time: datetime, output_file:
f"Was expecting to find exactly one csv file with the correctness data but found multiple: {files_downloaded}")
correctness_file = files_downloaded[0]
if crawling_format == Format.CSV:
expected_number_of_lines = pd.read_csv(correctness_file, header=0)["count"][0]
expected_number_of_lines = pd.read_csv(correctness_file, header=0)["count"].get(0, 0)
else:
expected_number_of_lines = pd.read_json(correctness_file, lines=True)["count"][0]
expected_number_of_lines = pd.read_json(correctness_file, lines=True)["count"].get(0, 0)
_, number_of_lines_exported = get_first_line_and_line_count(main_result_file)
if expected_number_of_lines == number_of_lines_exported:
print("\tCompleteness check passed!\n\t\t all rows were exported!")
Expand Down