Compare commits
3 Commits
f572b0808c
...
6bc41acebd
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6bc41acebd | ||
![]() |
d8f66a5a15 | ||
![]() |
254355227b |
2
app.py
2
app.py
@ -983,7 +983,7 @@ def restart_device(device_id):
|
|||||||
timeout=15
|
timeout=15
|
||||||
)
|
)
|
||||||
# Wysyłamy komendę reboot
|
# Wysyłamy komendę reboot
|
||||||
list(api('/system/reboot', {'confirm': ''}))
|
list(api('/system/reboot', {'confirm': 'y'}))
|
||||||
flash("Komenda reboot została wysłana.")
|
flash("Komenda reboot została wysłana.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
flash(f"Błąd podczas wysyłania komendy reboot: {e}")
|
flash(f"Błąd podczas wysyłania komendy reboot: {e}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user