Handle when source.last_crawl is None
This commit is contained in:
1 parent
1c4da6641c
commit
23fcbf0048
1 file changed
+1
-1
@@ -275,7 +275,7 @@ def schedule_indexing():
|
||||
skip_source = (
|
||||
not source.is_active or
|
||||
source.target_schedule >= next_hour or
|
||||
source.last_crawl >= previous_run
|
||||
(source.last_crawl and source.last_crawl >= previous_run)
|
||||
)
|
||||
if skip_source:
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user