Skip to content

Commit 7e8e904

Browse files
sahithyaravimfeurer
authored andcommitted
added upload time and error to list runs (#661)
* added upload time and error to list runs * remove unnecessary comment
1 parent 0f8b7f0 commit 7e8e904

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

openml/runs/functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,9 @@ def __list_runs(api_call):
802802
'task_id': int(run_['oml:task_id']),
803803
'setup_id': int(run_['oml:setup_id']),
804804
'flow_id': int(run_['oml:flow_id']),
805-
'uploader': int(run_['oml:uploader'])}
805+
'uploader': int(run_['oml:uploader']),
806+
'upload_time': str(run_['oml:upload_time']),
807+
'error_message': str((run_['oml:error_message']) or '')}
806808

807809
runs[run_id] = run
808810

tests/test_runs/test_run_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ def test_get_run(self):
10861086

10871087
def _check_run(self, run):
10881088
self.assertIsInstance(run, dict)
1089-
self.assertEqual(len(run), 5)
1089+
self.assertEqual(len(run), 7)
10901090

10911091
def test_get_runs_list(self):
10921092
# TODO: comes from live, no such lists on test

0 commit comments

Comments
 (0)