Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit b8f5f72

Browse files
authored
Merge pull request #61 from edoardottt/devel
Devel
2 parents e73810c + 46d221c commit b8f5f72

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def user_dashboard():
103103

104104
uptime = "🟢Uptime: " + str(datetime.datetime.now() - starting_time)
105105
for thread in threading.enumerate():
106-
if thread.getName() == "bot":
106+
if thread.name == "bot":
107107
if not thread.is_alive():
108108
uptime = "🔴Uptime: Dead"
109109
break

templates/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h4>Last {{len}} logs</h4>
106106
<div class="container-fluid">
107107
<div>
108108
<div class="container justify-content-center text-center">
109-
<a href="/">Back to home</a>
109+
<a href="/"><button type="button" class="btn btn-primary" value="Back to home">Back to home</button></a>
110110
</div>
111111
</div>
112112
</div>

templates/error.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616
<body>
1717
{% include 'navbar.html' %}
1818

19+
<br>
20+
1921
<div class="container" id="content">
22+
23+
<br>
2024
<div class="row">
2125
<h4>
2226
ERROR: {{ errormsg }}
2327
</h4>
24-
<a href="/">Back to home</a>
28+
<a href="/"><button type="button" class="btn btn-primary" value="Back to home">Back to home</button></a>
2529
</div>
2630
</div>
2731

templates/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<footer>
77
<div class="footerCopy">
88
<div class="inb">
9-
<p>Mantained with &lt;3 by <a href="https://www.edoardoottavianelli.it/">@edoardottt</a></p>
9+
<p>Mantained with ❤️ by <a href="https://www.edoardoottavianelli.it/">@edoardottt</a></p>
1010
</div>
1111
</div>
1212
</footer>

templates/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
Select for which user you want to show real time data
2525
</p>
2626
<form method="get" action="/dashboard">
27-
<!-- For loop logic of jinja template -->
28-
{%for i in range(0, len)%}
29-
<input type="radio" name="user" id="option1" value="{{ users[i][0] }}"> {{ users[i][0]}} </input><br>
30-
{%endfor%}
27+
<select name="user" class="form-select form-select-lg mb-3" aria-label=".form-select-lg example">
28+
<!-- For loop logic of jinja template -->
29+
{%for i in range(0, len)%}
30+
<option value="{{ users[i][0] }}">{{ users[i][0]}}</option>
31+
{%endfor%}
32+
</select>
3133
<br>
32-
<button type="submit" value="Submit">Submit</button>
34+
<button type="submit" class="btn btn-primary" value="Submit">Submit</button>
3335
</form>
3436
</div>
3537
</div>

0 commit comments

Comments
 (0)