add logs to debug
This commit is contained in:
parent
08bfbd1022
commit
d53cc83e3f
@ -58,7 +58,7 @@ class MediaChunkHolder(object):
|
|||||||
self.waiters = collections.deque()
|
self.waiters = collections.deque()
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f"MediaChunk,{self.info},unique_id:{self.unique_id}"
|
return f"MediaChunk,unique_id:{self.unique_id},{self.info},mlen:{self.length}"
|
||||||
|
|
||||||
def __eq__(self, other: Union["MediaChunkHolder", ChunkInfo, int]):
|
def __eq__(self, other: Union["MediaChunkHolder", ChunkInfo, int]):
|
||||||
if isinstance(other, int):
|
if isinstance(other, int):
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import time
|
||||||
|
|
||||||
import streamlit as st
|
import streamlit as st
|
||||||
|
|
||||||
import remote_api as api
|
import remote_api as api
|
||||||
@ -7,6 +9,11 @@ st.set_page_config(page_title="TgToolbox", page_icon="🕹️", layout="wide", i
|
|||||||
backend_status = api.get_backend_client_status()
|
backend_status = api.get_backend_client_status()
|
||||||
need_login = False
|
need_login = False
|
||||||
|
|
||||||
|
if not backend_status["init"]:
|
||||||
|
st.status("Server not ready")
|
||||||
|
time.sleep(0.5)
|
||||||
|
st.rerun()
|
||||||
|
|
||||||
for v in backend_status["clients"]:
|
for v in backend_status["clients"]:
|
||||||
if not v["status"]:
|
if not v["status"]:
|
||||||
need_login = True
|
need_login = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user