Skip to content

Commit

Permalink
Merge pull request #492 from sunil3590/master
Browse files Browse the repository at this point in the history
crawler_time -> crawler_delta
  • Loading branch information
Terrtia authored Apr 20, 2020
2 parents 927a8c9 + c8c9693 commit 6bfe790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ def api_create_crawler_task(user_id, url, screenshot=True, har=True, depth_limit

if auto_crawler:
try:
crawler_time = int(crawler_time)
if crawler_time < 0:
crawler_delta = int(crawler_delta)
if crawler_delta < 0:
return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
except ValueError:
return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
Expand Down

0 comments on commit 6bfe790

Please sign in to comment.