From 45592733da9822e70951b496c4a53f0399c1e94f Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Tue, 18 Jun 2024 06:57:53 +0200 Subject: [PATCH] reduce logging on bf v2 api calls --- cbpi/__init__.py | 2 +- cbpi/controller/upload_controller.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 2c39745..2214a03 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1,3 +1,3 @@ -__version__ = "4.4.2.a1" +__version__ = "4.4.2.a2" __codename__ = "Yeast Starter" diff --git a/cbpi/controller/upload_controller.py b/cbpi/controller/upload_controller.py index 51efffd..6e967ed 100644 --- a/cbpi/controller/upload_controller.py +++ b/cbpi/controller/upload_controller.py @@ -70,7 +70,7 @@ class UploadController: async def get_brewfather_recipes(self,offset=0): limit = 50 - loop=0 + #loop=0 repeat = True brewfather = True result=[] @@ -97,7 +97,7 @@ class UploadController: logging.error(e) if bf_recipe_list: - loop +=1 + #loop +=1 for row in bf_recipe_list: recipe_id = row['_id'] name = row['name'] @@ -107,15 +107,15 @@ class UploadController: repeat = False if len(bf_recipe_list) != limit: - logging.info(loop) + #logging.info(loop) repeat = False else: parameters={"limit": limit, 'start_after': recipe_id} - logging.info(len(result)) + #logging.info(len(result)) try: newlist = sorted(result, key=lambda d: d['label']) - logging.error(newlist) + #logging.info(newlist) return newlist except: return result