Skip to content

Commit

Permalink
Merge pull request #115 from adamchainz/patch-1
Browse files Browse the repository at this point in the history
Avoid double save in _set_flag_state
  • Loading branch information
willbarton committed Jul 27, 2023
2 parents cb2f4b0 + 73cd142 commit 9cfbb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flags/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _set_flag_state(
boolean_condition_obj = db_boolean_condition.obj
elif db_boolean_condition is None and create_boolean_condition:
# We can create a boolean condition and we need to.
boolean_condition_obj = FlagState.objects.create(
boolean_condition_obj = FlagState(
name=flag_name, condition="boolean", value="True"
)
else:
Expand Down

0 comments on commit 9cfbb6c

Please sign in to comment.