Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pellecchialuigi authored Dec 7, 2024
1 parent 2f3766f commit 0dca697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,7 @@ def post(self):
# Check if the same Test Case is already associated with the same snippet
if len(dbi.session.query(ApiTestCaseModel).join(TestCaseModel).filter(
ApiTestCaseModel.section == section).filter(
TestCaseModel.title == repository).filter(
TestCaseModel.title == title).filter(
TestCaseModel.repository == repository).filter(
TestCaseModel.relative_path == relative_path).all()) > 0:
return "Test Case already associated to the current api.", 409
Expand Down

0 comments on commit 0dca697

Please sign in to comment.