Skip to content

Commit

Permalink
don't update weighting if only updating text
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 16, 2023
1 parent 799e340 commit 9a26066
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crowdsourcer/management/commands/import_questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def handle(self, quiet: bool = False, *args, **kwargs):
]:
del defaults[default]

print(row["weighting"])
if kwargs["text_only"]:
del defaults["weighting"]

if kwargs["weighting_only"]:
for default in [
"description",
Expand Down

0 comments on commit 9a26066

Please sign in to comment.