summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/harvest/harvest_common.py
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-05-27 23:25:00 +0000
committerMartin Czygan <martin@archive.org>2020-05-27 23:25:00 +0000
commit174cf39a02b85c69ada9bea609be2fc06c172e68 (patch)
tree46fdb09a5cfe629b2581eaf195fd93ec87b399a3 /python/fatcat_tools/harvest/harvest_common.py
parentd7ebedc840d8fe27fe0b952986ec9d9161964123 (diff)
parent670aed3800873869550b477846f48cb2b4193005 (diff)
downloadfatcat-174cf39a02b85c69ada9bea609be2fc06c172e68.tar.gz
fatcat-174cf39a02b85c69ada9bea609be2fc06c172e68.zip
Merge branch 'bnewbold-harvest-state-next-span' into 'master'
rename HarvestState.next() to HarvestState.next_span() See merge request webgroup/fatcat!53
Diffstat (limited to 'python/fatcat_tools/harvest/harvest_common.py')
-rw-r--r--python/fatcat_tools/harvest/harvest_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/harvest/harvest_common.py b/python/fatcat_tools/harvest/harvest_common.py
index 5f7aa084..27ab8b4a 100644
--- a/python/fatcat_tools/harvest/harvest_common.py
+++ b/python/fatcat_tools/harvest/harvest_common.py
@@ -83,12 +83,12 @@ class HarvestState:
self.to_process.add(current)
current += datetime.timedelta(days=1)
- def next(self, continuous=False):
+ def next_span(self, continuous=False):
"""
Gets next timespan (date) to be processed, or returns None if completed.
If 'continuous' arg is True, will try to enqueue recent possibly valid
- timespans; the idea is to call next() repeatedly, and it will return a
+ timespans; the idea is to call next_span() repeatedly, and it will return a
new timespan when it becomes "available".
"""
if continuous: