From c66fe3881a873d674375d50c1db5d284335e07f0 Mon Sep 17 00:00:00 2001 From: Sabron Date: Wed, 21 May 2025 13:32:34 +0700 Subject: [PATCH] update : 21.05.2025 13:32:34,21 --- apps/about/templates/about_main.html | 8 ++++---- apps/about/views/views_about.py | 24 +++++++++++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/apps/about/templates/about_main.html b/apps/about/templates/about_main.html index 0b8286c..cfa75b3 100644 --- a/apps/about/templates/about_main.html +++ b/apps/about/templates/about_main.html @@ -85,7 +85,7 @@
user image Система - Shared publicly - 7:30 PM today +
@@ -114,7 +114,7 @@
user image ЦП - Shared publicly - 7:30 PM today +
@@ -143,7 +143,7 @@
user image Память - Shared publicly - 7:30 PM today +
@@ -172,7 +172,7 @@
user image Диски - Shared publicly - 7:30 PM today +
{% for disk in disks %}
diff --git a/apps/about/views/views_about.py b/apps/about/views/views_about.py index ae41047..6b12771 100644 --- a/apps/about/views/views_about.py +++ b/apps/about/views/views_about.py @@ -23,6 +23,23 @@ from sabron.util import logging def get_platform_info(): try: + platform_version = { + 'платформа': 'Не определено', + 'версия': 'Не определено', + 'релиз': 'Не определено', + 'система': 'Не определено', + 'архитектура': 'Не определено', + 'cpu_name': 'Не определено', + 'cpu_usage': 'Не определено', + 'cpu_freq': 'Не определено', + 'cpu_count': 'Не определено', + 'cpu_count_logical': 'Не определено', + 'memory_total': 'Не определено', + 'memory_used': 'Не определено', + 'memory_available': 'Не определено', + 'memory_percent': 'Не определено', + 'disks':[], + } memory = psutil.virtual_memory() m_disk=[] for value in psutil.disk_partitions(): @@ -61,13 +78,6 @@ def get_platform_info(): } return platform_version except Exception as err: - platform_version = { - 'платформа': 'Не определено', - 'версия': 'Не определено', - 'релиз': 'Не определено', - 'система': 'Не определено', - 'архитектура': 'Не определено', - } logging.error(traceback.format_exc())