Skip to content

Commit 98bb2e4

Browse files
committed
Include start & end times
1 parent 0a1436b commit 98bb2e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

simvue/converters.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ def to_dataframe(data):
66

77
columns = {}
88
for run in data:
9-
for item in ('name', 'status', 'folder', 'created'):
9+
for item in ('name', 'status', 'folder', 'created', 'started', 'ended'):
1010
if item not in columns:
1111
columns[item] = []
12-
columns[item].append(run[item])
12+
if item in run:
13+
columns[item].append(run[item])
14+
else:
15+
columns[item].append()
1316

1417
if 'system' in run:
1518
for section in run['system']:

0 commit comments

Comments
 (0)