1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

change history 'line' to integer

This commit is contained in:
Kelly Brazil
2020-02-04 14:31:28 -08:00
parent c56b83093f
commit 025986c51d
3 changed files with 13 additions and 3 deletions

View File

@ -70,7 +70,7 @@ def process(proc_data):
[
{
"line": string,
"line": integer,
"command": string
}
]
@ -84,6 +84,16 @@ def process(proc_data):
proc_line['command'] = v
processed.append(proc_line)
for entry in processed:
int_list = ['line']
for key in int_list:
if key in entry:
try:
key_int = int(entry[key])
entry[key] = key_int
except (ValueError):
entry[key] = None
return processed

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long