Commit de98dc58 authored by Lachlan's avatar Lachlan

*squash me - further Update generate_buildstream_config.py

parent 63a0525e
Pipeline #55631171 failed with stages
in 59 minutes and 39 seconds
......@@ -186,7 +186,7 @@ def generate_buildstream_config(output_file, results_path, run_token_path, url_p
if files:
list_of_files = glob.glob(results_path + '*.json')
file_times = {}
for file in list_of_files
for file in list_of_files:
file_times[file] = datetime.datetime.strptime(os.path.basename(file), 'results-%Y-%m-%d-%H:%M:%S.json')
if file_times:
latest_file = max(file_times.items(), key=operator.itemgetter(1))[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment