diff --git a/crowdsourcer/management/commands/add_automatic_points.py b/crowdsourcer/management/commands/add_automatic_points.py index 39c9232..f5194af 100644 --- a/crowdsourcer/management/commands/add_automatic_points.py +++ b/crowdsourcer/management/commands/add_automatic_points.py @@ -61,6 +61,12 @@ def add_arguments(self, parser): help="marking stage to add responses to", ) + parser.add_argument( + "--update_existing_responses", + action="store_true", + help="Always update existings responses", + ) + parser.add_argument( "--commit", action="store_true", help="Commits changes to DB" ) @@ -139,6 +145,7 @@ def handle( stage: str = "", session: str = "", option_map: str = "", + update_existing_responses: bool = False, *args, **kwargs, ): @@ -375,7 +382,7 @@ def handle( if point.get("evidence", None) is not None: r.public_notes = point["evidence"] r.save() - elif override_response: + elif override_response or update_existing_responses: responses_overidden += 1 self.print_info( f"overriding response for {council.name} for {question.number_and_part}, {question.section.title}",