击败比例不需要%

This commit is contained in:
2025-05-09 20:40:59 +08:00
parent c4ae0f32fb
commit 2c71ed63f9

View File

@@ -178,4 +178,4 @@ class ProblemSolvedPeopleCount(APIView):
rate = "%.2f" % ((total_count - accepted_count) / total_count * 100) rate = "%.2f" % ((total_count - accepted_count) / total_count * 100)
else: else:
rate = "0" rate = "0"
return self.success(f"{rate}%") return self.success(rate)