[O] Better formatting

This commit is contained in:
2024-10-07 16:53:04 -04:00
parent 40af7774ff
commit 1c8a146b63
+1 -1
View File
@@ -80,7 +80,7 @@ def get_hardware_info(cpu=False, gpu=False):
gpu_str = re.sub(r'lite hash rate', 'LHR', gpu_str, flags=re.IGNORECASE)
# Remove manufacturer keywords
kw = ['Intel', 'AMD', 'NVIDIA', 'GeForce', 'Radeon', '(R)', 'Series', 'Processor', 'Graphics', 'GPU', 'CPU', ',', 'Inc', '.', 'Family']
kw = ['Intel', 'AMD', 'NVIDIA', 'GeForce', 'Radeon', '(R)', 'Series', 'Processor', 'Graphics', 'GPU', 'CPU', ',', 'Inc', ' .', '. ', 'Family']
def norm(str) -> str:
for k in kw:
str = str.replace(k, '')