mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-25 00:18:17 +01:00
Update upload_controller.py
Increase limit of BF recipes to 50 next Steps: add offset parameter to start also with recipe 51,....
This commit is contained in:
parent
f117835c2c
commit
f62263e287
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ class UploadController:
|
|||
if brewfather == True:
|
||||
encodedData = base64.b64encode(bytes(f"{brewfather_user_id}:{brewfather_api_key}", "ISO-8859-1")).decode("ascii")
|
||||
headers={"Authorization": "Basic %s" % encodedData}
|
||||
|
||||
parameters={"limit": 50}
|
||||
async with aiohttp.ClientSession(headers=headers) as bf_session:
|
||||
async with bf_session.get(self.url) as r:
|
||||
async with bf_session.get(self.url, params=parameters) as r:
|
||||
bf_recipe_list = await r.json()
|
||||
await bf_session.close()
|
||||
|
||||
|
|
Loading…
Reference in a new issue