diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 15:15:35 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 15:15:35 -0700 |
commit | 262990a3cb77c790fe62c325415edf2416b840f0 (patch) | |
tree | 28352ec9f66ec17466edb037141105dd8b633751 | |
parent | ecff2244bfce87a75ca8591003fb24c24e3f6e24 (diff) | |
download | sandcrawler-262990a3cb77c790fe62c325415edf2416b840f0.tar.gz sandcrawler-262990a3cb77c790fe62c325415edf2416b840f0.zip |
bugfix: was setting 'from' parameter as a tuple, not a string
-rw-r--r-- | python/sandcrawler/ia.py | 2 |
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" |