Skip to content

Commit

Permalink
switching gt/lt signs (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Nov 10, 2023
1 parent ed7b18b commit 9b2c0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soscan/spiders/jsonldspider.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def sitemap_filter(self, entries):
i = 0
for entry in entries:
i += 1
if ((self.start_point is not None) and (self.start_point >= i)) or (self.start_point is None):
if ((self.start_point is not None) and (self.start_point <= i)) or (self.start_point is None):
if self.start_point == i:
self.logger.info(f'Starting scrape at record {i}')
ts = entry.get("lastmod", None)
Expand All @@ -141,7 +141,7 @@ def sitemap_filter(self, entries):
self.logger.debug(f'lastmod_filter skipping record {i}: (ts {ts}) {entry}')
else:
yield entry
if (self.start_point is not None) and (self.start_point < i):
if (self.start_point is not None) and (self.start_point > i):
if i == 1:
self.logger.info(f'Skipping to start_point at record {self.start_point}')
self.logger.debug(f'start_point skipping record {i}: {entry}')
Expand Down

0 comments on commit 9b2c0c0

Please sign in to comment.