1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

fix process function

This commit is contained in:
Kelly Brazil
2019-11-04 11:02:02 -08:00
parent 591a65c2bd
commit 669a424fd6

View File

@ -74,8 +74,8 @@ def process(proc_data):
# remove percent sign from 'use_percent' and change to int # remove percent sign from 'use_percent' and change to int
if entry['use_percent']: if entry['use_percent']:
try: try:
entry['use_percent'].rstrip('%') use_percent_int = entry['use_percent'].rstrip('%')
use_percent_int = int(entry['use_percent']) use_percent_int = int(use_percent_int)
entry['use_percent'] = use_percent_int entry['use_percent'] = use_percent_int
except ValueError: except ValueError:
entry['use_percent'] = None entry['use_percent'] = None