@@ -1427,7 +1427,11 @@ def main():
14271427 statuses_map = SQLiteStorage .get_run_statuses (args .project )
14281428 all_records = SQLiteStorage .get_run_records (args .project )
14291429 if status_filter is not None :
1430- all_records = [rec for rec in all_records if statuses_map .get (rec ["name" ]) == status_filter ]
1430+ all_records = [
1431+ rec
1432+ for rec in all_records
1433+ if statuses_map .get (rec ["name" ]) == status_filter
1434+ ]
14311435 records_by_name : dict [str , list [dict ]] = {}
14321436 for rec in all_records :
14331437 records_by_name .setdefault (rec ["name" ], []).append (rec )
@@ -1461,7 +1465,12 @@ def main():
14611465 )
14621466 else :
14631467 display = [
1464- {** r , "run" : f"{ r ['run' ]} ({ r ['id' ][:8 ]} )" if has_dupes and r .get ("id" ) else r ["run" ]}
1468+ {
1469+ ** r ,
1470+ "run" : f"{ r ['run' ]} ({ r ['id' ][:8 ]} )"
1471+ if has_dupes and r .get ("id" )
1472+ else r ["run" ],
1473+ }
14651474 for r in results
14661475 ]
14671476 print (format_best (args .project , args .metric , minimize , args .mode , display ))
@@ -1476,7 +1485,9 @@ def main():
14761485 names_filter = {r .strip () for r in args .runs .split ("," )}
14771486 all_records = [r for r in all_records if r ["name" ] in names_filter ]
14781487 elif status_filter is not None :
1479- all_records = [r for r in all_records if statuses .get (r ["name" ]) == status_filter ]
1488+ all_records = [
1489+ r for r in all_records if statuses .get (r ["name" ]) == status_filter
1490+ ]
14801491
14811492 metric_names = None
14821493 if args .metrics :
@@ -1532,7 +1543,12 @@ def main():
15321543 )
15331544 else :
15341545 display = [
1535- {** e , "run" : f"{ e ['run' ]} ({ e ['id' ][:8 ]} )" if has_dupes and e .get ("id" ) else e ["run" ]}
1546+ {
1547+ ** e ,
1548+ "run" : f"{ e ['run' ]} ({ e ['id' ][:8 ]} )"
1549+ if has_dupes and e .get ("id" )
1550+ else e ["run" ],
1551+ }
15361552 for e in comparison
15371553 ]
15381554 print (format_compare (args .project , metric_names , display ))
0 commit comments