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-crypto-267-268
This commit is contained in:
commit
9132928846
@ -1,12 +1,17 @@
|
||||
# Changelog
|
||||
## --- [4.1.4] - 2023/TBD
|
||||
## --- [4.2.0] - 2023/TBD
|
||||
### New features
|
||||
TBD
|
||||
### 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))
|
||||
- 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))
|
||||
- Bump tornado to resolve #269 ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/623))
|
||||
### Refactor
|
||||
TBD
|
||||
### Tweaks
|
||||
- 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
|
||||
TBD
|
||||
<br><br>
|
||||
|
@ -16,6 +16,12 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
class Server:
|
||||
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")
|
||||
# print(self.description)
|
||||
if isinstance(self.description, dict):
|
||||
|
@ -92,6 +92,9 @@ class MainPrompt(cmd.Cmd):
|
||||
|
||||
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
|
||||
def do_threads(_line):
|
||||
for thread in threading.enumerate():
|
||||
|
@ -15,7 +15,7 @@ pyjwt==2.4.0
|
||||
PyYAML==6.0.1
|
||||
requests==2.31
|
||||
termcolor==1.1
|
||||
tornado==6.3.2
|
||||
tornado==6.3.3
|
||||
tzlocal==4.0
|
||||
jsonschema==4.5.1
|
||||
orjson==3.8.12
|
||||
|
Loading…
Reference in New Issue
Block a user