fix: [crawlers] fix errored capture start time

This commit is contained in:
terrtia 2024-01-30 11:24:12 +01:00
parent 2db8587d03
commit fbd7e2236a
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -1331,6 +1331,8 @@ class CrawlerCapture:
start_time = self.get_task().get_start_time()
if r_str:
return start_time
elif not start_time:
return 0
else:
start_time = datetime.strptime(start_time, "%Y/%m/%d - %H:%M.%S").timestamp()
return int(start_time)