diff --git a/server/planning/planning/planning.py b/server/planning/planning/planning.py index 7b494a8fd..997665183 100644 --- a/server/planning/planning/planning.py +++ b/server/planning/planning/planning.py @@ -761,7 +761,7 @@ def _create_update_assignment( if assigned_to.get("state") and assigned_to["state"] != ASSIGNMENT_WORKFLOW_STATE.DRAFT: assign_state = assigned_to.get("state") - if translated_value.get("name") and not "headline" in doc["planning"]: + if translated_value.get("name") and "headline" not in doc["planning"]: doc["planning"]["headline"] = translated_value.get("name") assignment = {