mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-19 08:46:14 +00:00
Merge pull request #492 from sunil3590/master
crawler_time -> crawler_delta
This commit is contained in:
commit
6bfe790056
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue