Skip to content

Commit

Permalink
Check that result form does not have duplicate barcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Aug 13, 2024
1 parent 3430369 commit 99eba74
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.conf import settings
from tally_ho.apps.tally.management.commands.utils import (
build_generic_model_key_values_from_duckdb_row_tuple_data,
check_duplicates,
check_for_missing_columns,
get_ballot_by_ballot_number,
get_office_by_office_name_and_region_name,
Expand Down Expand Up @@ -195,6 +196,10 @@ def async_import_results_forms_from_result_forms_file(
duckdb_result_forms_data.columns,
'result_form'
)
check_duplicates(
csv_file_path=file_path,
field='barcode'
)

stations_by_number_underscore_center_code =\
{
Expand Down

0 comments on commit 99eba74

Please sign in to comment.