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:
parent
87d4884eea
commit
25000459cb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue