forked from JOJ/Joint-Teapot
		
	fix: completely remove content on empty stage (#45)
Co-authored-by: BoYanZh <boyanzh233@gmail.com>
This commit is contained in:
		
							parent
							
								
									342c145d20
								
							
						
					
					
						commit
						02a09d32fb
					
				|  | @ -196,12 +196,12 @@ def generate_title_and_comment( | |||
|         + "[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n" | ||||
|     ) | ||||
|     for stage in stages: | ||||
|         comment += f"## {stage['name']}\n" | ||||
|         if all( | ||||
|             result["score"] == 0 and result["comment"].strip() == "" | ||||
|             for result in stage["results"] | ||||
|         ): | ||||
|             continue | ||||
|         comment += f"## {stage['name']}\n" | ||||
|         force_quit = stage["force_quit"] | ||||
|         if force_quit: | ||||
|             comment += " - Failed" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 mQzLjP
						mQzLjP