Skip to content

Commit

Permalink
ci: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mala1180 committed Apr 8, 2024
1 parent 3c08328 commit af96271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ jobs:
release:
needs:
- test
if: github.ref_name != 'main'
if: github.ref_name == 'main'
uses: ./.github/workflows/release.yml
# secrets: inherit
7 changes: 3 additions & 4 deletions app/resources/questionnaires.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
class QuestionnaireResource(Resource):
def get(self, project_id):
# Replace this with business logic
return '', 200
return "", 200

def delete(self, project_id):
# Assume you have logic to delete questions for the given project ID
# Replace this with business logic
return '', 204
return "", 204


api.add_resource(QuestionnaireResource, '/projects/<string:project_id>/questionnaire')
api.add_resource(QuestionnaireResource, "/projects/<string:project_id>/questionnaire")

0 comments on commit af96271

Please sign in to comment.