Преглед изворни кода

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)