Skip to content

Commit

Permalink
fix: [crawlers] fix errored capture start time
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jan 30, 2024
1 parent 2db8587 commit fbd7e22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,8 @@ def get_start_time(self, r_str=True):
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)
Expand Down

0 comments on commit fbd7e22

Please sign in to comment.