Skip to content

Commit

Permalink
HOTFIX: Tiny typo in /webscrape input params
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Sep 21, 2023
1 parent 66b757e commit d7741d1
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 @@ -324,7 +324,7 @@ def scrape() -> Response:
max_urls: int = request.args.get('max_urls', default=100, type=int)
max_depth: int = request.args.get('max_depth', default=2, type=int)
timeout: int = request.args.get('timeout', default=3, type=int)
stay_on_baseurl: bool | None = request.args.get('`stay_on_baseurl`', default=True, type=bool)
stay_on_baseurl: bool | None = request.args.get('stay_on_baseurl', default=True, type=bool)

if url == '' or max_urls == -1 or max_depth == -1 or timeout == -1 or course_name == '' or stay_on_baseurl is None:
# proper web error "400 Bad request"
Expand Down

0 comments on commit d7741d1

Please sign in to comment.