remove restart function from dashboard
This commit is contained in:
parent
0adfe7fcb9
commit
20b9804653
2 changed files with 0 additions and 6 deletions
|
@ -21,11 +21,6 @@ def block():
|
||||||
@app.route('/script.js')
|
@app.route('/script.js')
|
||||||
def script():
|
def script():
|
||||||
return send_file("script.js", mimetype='application/javascript')
|
return send_file("script.js", mimetype='application/javascript')
|
||||||
@app.route('/reboot.run')
|
|
||||||
def reboot():
|
|
||||||
os.system("systemctl --user restart sweebot")
|
|
||||||
wait(1)
|
|
||||||
return "<i class=\"fas fa-check\"></i>"
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<a class="btn btn-danger" data-bs-toggle="tooltip" title="Restart bot" onclick="reboot();" id="rebooticon"><i class="fas fa-power-off"></i></a>
|
|
||||||
<a class="btn btn-primary" data-bs-toggle="tooltip" title="Refresh stats" onclick="refresh();" id="refresh"><i class="fas fa-sync"></i></a>
|
<a class="btn btn-primary" data-bs-toggle="tooltip" title="Refresh stats" onclick="refresh();" id="refresh"><i class="fas fa-sync"></i></a>
|
||||||
</center>
|
</center>
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue