浏览代码

Add an arbitrary limit on the number of values returned

jherve 1 年之前
父节点
当前提交
2ae7111cbf
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/de_quoi_parle_le_monde/internet_archive.py

+ 2 - 0
src/de_quoi_parle_le_monde/internet_archive.py

@@ -125,6 +125,8 @@ class InternetArchiveClient:
             # of the HTTP layer that this client should not be aware of..
             to_=min(dt + timedelta(hours=6.0), datetime.now()),
             filter="statuscode:200",
+            # Just to be safe, add an arbitrary limit to the number of values returned
+            limit=100,
         )
 
         all_snaps = await self.search_snapshots(req)