Skip to content

Commit

Permalink
Merge pull request #2116 from DemocracyClub/force-ballots
Browse files Browse the repository at this point in the history
add force-update flag to import_ballots
  • Loading branch information
chris48s authored Dec 10, 2024
2 parents ea2d62e + 7885ba5 commit 17069f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wcivf/apps/elections/management/commands/import_ballots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 17069f2

Please sign in to comment.