mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'dev' into bugfix/bump-tornado-269
This commit is contained in:
commit
90dd1c79b8
@ -1,12 +1,16 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
## --- [4.1.4] - 2023/TBD
|
## --- [4.2.0] - 2023/TBD
|
||||||
### New features
|
### New features
|
||||||
TBD
|
TBD
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
- PWA: Removed the custom offline page in favour of browser default ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/607))
|
- PWA: Removed the custom offline page in favour of browser default ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/607))
|
||||||
- Fix hidden servers appearing visible on public mobile status page ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/612))
|
- Fix hidden servers appearing visible on public mobile status page ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/612))
|
||||||
|
- Correctly handle if a server returns a string instead of json data on socket ping ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/614))
|
||||||
|
### Refactor
|
||||||
|
TBD
|
||||||
### Tweaks
|
### Tweaks
|
||||||
- Polish/Enhance display for InApp Documentation ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/613))
|
- Polish/Enhance display for InApp Documentation ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/613))
|
||||||
|
- Add get_users command to Crafty's console ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/620))
|
||||||
### Lang
|
### Lang
|
||||||
TBD
|
TBD
|
||||||
<br><br>
|
<br><br>
|
||||||
|
@ -16,6 +16,12 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class Server:
|
class Server:
|
||||||
def __init__(self, data):
|
def __init__(self, data):
|
||||||
|
if isinstance(data, str):
|
||||||
|
logger.error(
|
||||||
|
"Failed to calculate stats. Expected object. "
|
||||||
|
f"Server returned string: {data}"
|
||||||
|
)
|
||||||
|
return
|
||||||
self.description = data.get("description")
|
self.description = data.get("description")
|
||||||
# print(self.description)
|
# print(self.description)
|
||||||
if isinstance(self.description, dict):
|
if isinstance(self.description, dict):
|
||||||
|
@ -92,6 +92,9 @@ class MainPrompt(cmd.Cmd):
|
|||||||
|
|
||||||
self.controller.users.update_user(user_id, {"password": new_pass})
|
self.controller.users.update_user(user_id, {"password": new_pass})
|
||||||
|
|
||||||
|
def do_get_users(self, _line):
|
||||||
|
Console.info(self.controller.users.get_all_usernames())
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def do_threads(_line):
|
def do_threads(_line):
|
||||||
for thread in threading.enumerate():
|
for thread in threading.enumerate():
|
||||||
|
Loading…
Reference in New Issue
Block a user