Set default page size from environment variable

Replaced the hardcoded page size with a value fetched from the `SWISSDOX_PAGESIZE` environment variable, defaulting to 10 if not set. This allows greater flexibility and configurability for pagination settings.
This commit is contained in:
ThomasTaroni 2025-06-21 20:39:22 +02:00
parent 87d4884eea
commit 25000459cb

View file

@ -80,7 +80,7 @@ async def smd_research(search_query: str = "Bundesrat", date_from: str = "2024-0
],
"exact": False,
"pagination": {
"pageSize": 25,
"pageSize": os.getenv('SWISSDOX_PAGESIZE', '10'),
"currentPage": 1
},
"onlyResults": False