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')
|
||||
def script():
|
||||
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__':
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
<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>
|
||||
</center>
|
||||
<script src="script.js"></script>
|
||||
|
|
Loading…
Reference in a new issue