remove some unused imports, send correct message on warmup

This commit is contained in:
Christoph Stenglein 2022-10-22 14:17:13 +02:00
parent 36e2d525b7
commit 2053f0ea3b
No known key found for this signature in database
GPG key ID: 43DF8DE289F09EDE
2 changed files with 3 additions and 3 deletions

View file

@ -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]),
]
)

View file

@ -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