mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
use jc.utils for conversions
This commit is contained in:
@ -131,8 +131,8 @@ def _process(proc_data):
|
||||
"""
|
||||
for entry in proc_data:
|
||||
null_list = ['user', 'tty', 'from', 'login_at', 'idle', 'what']
|
||||
for key in null_list:
|
||||
if key in entry:
|
||||
for key in entry:
|
||||
if key in null_list:
|
||||
if entry[key] == '-':
|
||||
entry[key] = None
|
||||
|
||||
|
Reference in New Issue
Block a user