mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'tweak/console-get-user' into 'dev'
Add get users to crafty command See merge request crafty-controller/crafty-4!620
This commit is contained in:
commit
57dc58099b
@ -10,6 +10,7 @@ TBD
|
||||
- Refractor/Replace bleach with nh3 ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/616))
|
||||
### 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>
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user