Skip to content

Commit 05f2264

Browse files
committed
refactor scoreboard: improve code formatting and HTML consistency
1 parent e329437 commit 05f2264

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

scoreboard/main.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,12 @@ def main():
287287

288288
# Build rows for each page
289289
threads_rows = _build_rows_for_task_types(
290-
task_types_threads, threads_task_dirs, perf_stats, cfg, eff_num_proc, deadlines_cfg
290+
task_types_threads,
291+
threads_task_dirs,
292+
perf_stats,
293+
cfg,
294+
eff_num_proc,
295+
deadlines_cfg,
291296
)
292297
processes_rows = _build_rows_for_task_types(
293298
task_types_processes,
@@ -327,12 +332,12 @@ def main():
327332
except Exception:
328333
# Simple fallback menu if template missing
329334
menu_html_content = (
330-
"<html><head><title>Scoreboard</title><link rel=\"stylesheet\" "
331-
"type=\"text/css\" href=\"static/main.css\"></head><body>"
335+
'<html><head><title>Scoreboard</title><link rel="stylesheet" '
336+
'type="text/css" href="static/main.css"></head><body>'
332337
"<h1>Scoreboard</h1>"
333338
"<ul>"
334-
"<li><a href=\"threads.html\">Threads Scoreboard</a></li>"
335-
"<li><a href=\"processes.html\">Processes Scoreboard</a></li>"
339+
'<li><a href="threads.html">Threads Scoreboard</a></li>'
340+
'<li><a href="processes.html">Processes Scoreboard</a></li>'
336341
"</ul></body></html>"
337342
)
338343
else:
@@ -357,7 +362,10 @@ def main():
357362
else:
358363
logger.warning("Static directory not found at %s", static_src)
359364

360-
logger.info("HTML pages generated at %s (index.html, threads.html, processes.html)", output_path)
365+
logger.info(
366+
"HTML pages generated at %s (index.html, threads.html, processes.html)",
367+
output_path,
368+
)
361369

362370

363371
if __name__ == "__main__":

0 commit comments

Comments
 (0)