crawler_time -> crawler_delta

pull/492/head
Sunil D S 2020-04-17 20:06:40 +05:30 committed by GitHub
parent 927a8c96c5
commit c8c96937cc
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)