Merge pull request #492 from sunil3590/master

crawler_time -> crawler_delta
pull/497/head
Thirion Aurélien 2020-04-20 08:33:14 +02:00 committed by GitHub
commit 6bfe790056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -446,8 +446,8 @@ def api_create_crawler_task(user_id, url, screenshot=True, har=True, depth_limit
if auto_crawler: if auto_crawler:
try: try:
crawler_time = int(crawler_time) crawler_delta = int(crawler_delta)
if crawler_time < 0: if crawler_delta < 0:
return ({'error':'invalid delta bettween two pass of the crawler'}, 400) return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
except ValueError: except ValueError:
return ({'error':'invalid delta bettween two pass of the crawler'}, 400) return ({'error':'invalid delta bettween two pass of the crawler'}, 400)