From 7885ba51a53a761c98c4d43bb5c2fb98aa6db9cb Mon Sep 17 00:00:00 2001 From: chris48s Date: Mon, 9 Dec 2024 13:11:53 +0000 Subject: [PATCH] add force-update flag to import_ballots --- .../apps/elections/management/commands/import_ballots.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcivf/apps/elections/management/commands/import_ballots.py b/wcivf/apps/elections/management/commands/import_ballots.py index 15cebbe89..f774e3078 100644 --- a/wcivf/apps/elections/management/commands/import_ballots.py +++ b/wcivf/apps/elections/management/commands/import_ballots.py @@ -16,6 +16,13 @@ def add_arguments(self, parser): default=False, help="Only import ballots that are'current'", ) + parser.add_argument( + "--force-update", + action="store_true", + dest="force_update", + default=False, + help="Imports all properties from EE", + ) parser.add_argument( "--force-all-metadata", action="store_true", @@ -79,6 +86,7 @@ def delete_deleted_elections(self): def handle(self, **options): importer = YNRBallotImporter( + force_update=options["force_update"], stdout=self.stdout, current_only=options["current"], force_metadata=options["force_metadata"],