From bc73b17abdec1b9dfaadf963df5f146a3e578281 Mon Sep 17 00:00:00 2001 From: mQzLjP <91550006+mQzLjP@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:24:18 +0800 Subject: [PATCH] feat: hide empty stages (#44) Co-authored-by: BoYanZh --- joint_teapot/utils/joj3.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 6e5a0af..eac9bea 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -197,6 +197,11 @@ def generate_title_and_comment( ) for stage in stages: comment += f"## {stage['name']}" + if all( + result["score"] == 0 and result["comment"].strip() == "" + for result in stage["results"] + ): + continue force_quit = stage["force_quit"] if force_quit: comment += " - Failed"