From 2053f0ea3b8ff4374b7903d2d25cda4e8df99dd3 Mon Sep 17 00:00:00 2001 From: Christoph Stenglein Date: Sat, 22 Oct 2022 14:17:13 +0200 Subject: [PATCH] remove some unused imports, send correct message on warmup --- app/main.py | 4 ++-- app/system/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index eb430b0..4db58d8 100644 --- a/app/main.py +++ b/app/main.py @@ -22,7 +22,6 @@ from app.api.warmup import ( get_full_client_warmup_data, get_full_client_warmup_data_bitcoinonly, ) -from app.apps import router from app.apps.router import router as app_router from app.auth.auth_bearer import JWTBearer from app.auth.auth_handler import ( @@ -286,7 +285,8 @@ async def warmup_new_connections(): _send_sse_event(id, SSE.LN_INFO_LITE, res[3].dict()), _send_sse_event(id, SSE.LN_FEE_REVENUE, res[4]), _send_sse_event(id, SSE.WALLET_BALANCE, res[5].dict()), - _send_sse_event(id, SSE.HARDWARE_INFO, res[6]), + _send_sse_event(id, SSE.INSTALLED_APP_STATUS, res[6]), + _send_sse_event(id, SSE.HARDWARE_INFO, res[7]), ] ) diff --git a/app/system/models.py b/app/system/models.py index 8773617..14e6074 100644 --- a/app/system/models.py +++ b/app/system/models.py @@ -1,5 +1,5 @@ from enum import Enum -from typing import List, Optional +from typing import Optional from decouple import config from fastapi import Query