aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-26 15:15:35 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-26 15:15:35 -0700
commit262990a3cb77c790fe62c325415edf2416b840f0 (patch)
tree28352ec9f66ec17466edb037141105dd8b633751
parentecff2244bfce87a75ca8591003fb24c24e3f6e24 (diff)
downloadsandcrawler-262990a3cb77c790fe62c325415edf2416b840f0.tar.gz
sandcrawler-262990a3cb77c790fe62c325415edf2416b840f0.zip
bugfix: was setting 'from' parameter as a tuple, not a string
-rw-r--r--python/sandcrawler/ia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py
index caa6e79..45db393 100644
--- a/python/sandcrawler/ia.py
+++ b/python/sandcrawler/ia.py
@@ -302,7 +302,7 @@ class CdxApiClient:
}
if max_age_days:
since = datetime.date.today() - datetime.timedelta(days=max_age_days)
- params['from'] = '%04d%02d%02d' % (since.year, since.month, since.day),
+ params['from'] = '%04d%02d%02d' % (since.year, since.month, since.day)
if closest:
params['closest'] = closest
params['sort'] = "closest"