diff --git a/smartreport_app/kb_interface.py b/smartreport_app/kb_interface.py index d83b47e..e42944d 100644 --- a/smartreport_app/kb_interface.py +++ b/smartreport_app/kb_interface.py @@ -14,7 +14,9 @@ def kb_interface(params): value = resp['value'][-1] response = { 'value': int(value * 100) , # should be only one or take the last one - 'color' : random.choice(['red', 'yellow', 'green']) + # 'color' : random.choice(['red', 'yellow', 'green']) + 'color' : random.choice(['yellow']) + } return response diff --git a/smartreport_app/sync_db_kb.py b/smartreport_app/sync_db_kb.py index 4e6a869..00ccdbd 100644 --- a/smartreport_app/sync_db_kb.py +++ b/smartreport_app/sync_db_kb.py @@ -3,7 +3,7 @@ import random -BASE_URL = 'https://vornao.dev:8888' +BASE_URL = 'https://industrial-smartapp-api.onrender.com' USERNAME = 'smartapp' PASSWORD = 'api'