From 4d4e58bb67c653426025cc6bb1902d58d95a40e3 Mon Sep 17 00:00:00 2001 From: Vili Date: Sat, 16 Sep 2023 12:30:38 +0300 Subject: [PATCH] Update local_accounts_getter.py --- utils/local_accounts_getter.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/utils/local_accounts_getter.py b/utils/local_accounts_getter.py index 28a35b4..01aceb3 100644 --- a/utils/local_accounts_getter.py +++ b/utils/local_accounts_getter.py @@ -53,11 +53,12 @@ def __init__(self): # Iterate through the user information list to print the information for user_info in user_info_list: - printer.success("Username:", user_info['Username']) - printer.success("Terminal:", user_info['Terminal']) - printer.success("Host:", user_info['Host']) - printer.success("Started:", user_info['Started']) - printer.success("PID:", user_info['PID'], "\n") + printer.success("User Information:") + printer.success(f"Username: {user_info['Username']}") + printer.success(f"Terminal: {user_info['Terminal']}") + printer.success(f"Host: {user_info['Host']}") + printer.success(f"Started: {user_info['Started']}") + printer.success(f"PID: {user_info['PID']}", "\n") except Exception as e: printer.error("Error retrieving account information:", str(e))