Skip to content

Commit

Permalink
More informative warning when map_item results are not complete
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Feb 17, 2025
1 parent bacd760 commit 711c8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/lib/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def process(self):
if self.import_warning_count == 0 and self.import_error_count == 0:
self.dataset.finish(num_rows=num_items)
else:
self.dataset.update_status(f"All data imported. {str(self.import_error_count) + ' item(s) had an unexpected format and cannot be used in 4CAT processors. ' if self.import_error_count != 0 else ''}{str(self.import_warning_count) + ' item(s) missing some data fields. ' if self.import_warning_count != 0 else ''}Check the dataset log for details.", is_final=True)
self.dataset.update_status(f"All data imported. {str(self.import_error_count) + ' item(s) had an unexpected format and cannot be used in 4CAT processors. ' if self.import_error_count != 0 else ''}{str(self.import_warning_count) + ' item(s) missing some data fields. ' if self.import_warning_count != 0 else ''}\n\nMissing data is noted in the `missing_fields` column of this dataset's CSV file; see also the dataset log for details.", is_final=True)
self.dataset.finish(num_rows=num_items)

def search(self, query):
Expand Down

0 comments on commit 711c8b4

Please sign in to comment.