Skip to content

Commit 2b9ee54

Browse files
Merge pull request #147 from VineetBala-AOT/main
fix boolean comparison for is_active condition filter
2 parents 76a0ddc + 827ab20 commit 2b9ee54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

condition-api/src/condition_api/services/condition_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def create_condition(project_id, document_id, conditions_data, allow_duplicate_c
526526
.filter(
527527
Condition.document_id == final_document_id,
528528
Condition.condition_number == conditions_data.get("condition_number"),
529-
Condition.is_active is True
529+
Condition.is_active.is_(True)
530530
)
531531
.all()
532532
)

0 commit comments

Comments
 (0)