Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,14 +18,14 @@ launch_time = datetime.datetime.utcnow()
|
|
18 |
ph = st.empty()
|
19 |
|
20 |
def syncMessages():
|
21 |
-
delta_uptime = datetime.datetime.utcnow() - launch_time
|
22 |
-
hours, remainder = divmod(int(delta_uptime.total_seconds()), 3600)
|
23 |
-
minutes, seconds = divmod(remainder, 60)
|
24 |
-
days, hours = divmod(hours, 24)
|
25 |
-
st.markdown(f":blue[Online Time]: :rainbow[{days:02d}]d | :rainbow[{hours:02d}]h | :rainbow[{minutes:02d}]m | :rainbow[{seconds:02d}]s")
|
26 |
if os.listdir("data") == []:
|
27 |
return 0
|
28 |
with ph.container():
|
|
|
|
|
|
|
|
|
|
|
29 |
dirs = st.tabs(os.listdir("data"))
|
30 |
i = -1
|
31 |
for dir in os.listdir("data"):
|
|
|
18 |
ph = st.empty()
|
19 |
|
20 |
def syncMessages():
|
|
|
|
|
|
|
|
|
|
|
21 |
if os.listdir("data") == []:
|
22 |
return 0
|
23 |
with ph.container():
|
24 |
+
delta_uptime = datetime.datetime.utcnow() - launch_time
|
25 |
+
hours, remainder = divmod(int(delta_uptime.total_seconds()), 3600)
|
26 |
+
minutes, seconds = divmod(remainder, 60)
|
27 |
+
days, hours = divmod(hours, 24)
|
28 |
+
st.markdown(f":violet[Online Time]: :green[{days:02d}]d | :green[{hours:02d}]h | :green[{minutes:02d}]m | :green[{seconds:02d}]s")
|
29 |
dirs = st.tabs(os.listdir("data"))
|
30 |
i = -1
|
31 |
for dir in os.listdir("data"):
|