v1.1.4: fix Undefined JSON error — config.VERSION always set
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ from routes.api import bp as api_bp
|
||||
from routes.api_test import bp as api_test_bp
|
||||
|
||||
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
|
||||
VERSION = "1.1.3"
|
||||
VERSION = "1.1.4"
|
||||
|
||||
app = Flask(__name__, template_folder="templates", static_folder="static")
|
||||
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc")
|
||||
|
||||
@@ -101,6 +101,8 @@ def index():
|
||||
instances = []
|
||||
instance_groups = {}
|
||||
config = {}
|
||||
config["VERSION"] = current_app.config["VERSION"] # всегда, даже без токена
|
||||
config["service_ids"] = []
|
||||
stand = "?"
|
||||
if active_token:
|
||||
# create_client — автоопределение стенда + HttpClient
|
||||
|
||||
Reference in New Issue
Block a user