diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-27 22:42:45 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-27 22:42:45 +0000 |
commit | 62a6c04c1af29bed1153a7deb01fa57fa5cc89d1 (patch) | |
tree | 4897c6685a17940548778dd5e19b0e0dbb11a12d /src/app.py | |
parent | debian: 2.4-1 (diff) | |
parent | update example screenshot (diff) | |
download | linux-status-62a6c04c1af29bed1153a7deb01fa57fa5cc89d1.tar.gz linux-status-62a6c04c1af29bed1153a7deb01fa57fa5cc89d1.zip |
Merge tag 'v2.4.1' into debian
Diffstat (limited to '')
-rwxr-xr-x | src/app.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -585,6 +585,7 @@ def cgi_one_value(params, name, default=None): class Request(Enum): STATUS = 'status' TOP = 'top' + THERMAL = 'thermal' REBOOT = 'reboot' POWEROFF = 'poweroff' @@ -610,6 +611,8 @@ class Request(Enum): return Status().complete() if self is Request.TOP: return Top().complete() + if self is Request.THERMAL: + return ThermalInfo().complete() if self in [Request.REBOOT, Request.POWEROFF] and self.disable_power: return Response(None, HTTPStatus.FORBIDDEN) |