Skip to content

Commit

Permalink
HOTFIX: required parameter handling on /delete endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Sep 16, 2023
1 parent 26ee9f4 commit 0a9d074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def delete():
s3_path: str = request.args.get('s3_path', default='', type=str)
source_url: str = request.args.get('source_url', default='', type=str)

if course_name == '' and (s3_path == '' or source_url == ''):
if course_name == '' or (s3_path == '' and source_url == ''):
# proper web error "400 Bad request"
abort(
400,
Expand Down

0 comments on commit 0a9d074

Please sign in to comment.