mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [crawlers] fix errored capture start time
This commit is contained in:
parent
2db8587d03
commit
fbd7e2236a
1 changed files with 2 additions and 0 deletions
|
@ -1331,6 +1331,8 @@ class CrawlerCapture:
|
||||||
start_time = self.get_task().get_start_time()
|
start_time = self.get_task().get_start_time()
|
||||||
if r_str:
|
if r_str:
|
||||||
return start_time
|
return start_time
|
||||||
|
elif not start_time:
|
||||||
|
return 0
|
||||||
else:
|
else:
|
||||||
start_time = datetime.strptime(start_time, "%Y/%m/%d - %H:%M.%S").timestamp()
|
start_time = datetime.strptime(start_time, "%Y/%m/%d - %H:%M.%S").timestamp()
|
||||||
return int(start_time)
|
return int(start_time)
|
||||||
|
|
Loading…
Reference in a new issue