new
All checks were successful
Deploy to Server / deploy (push) Successful in 15s

This commit is contained in:
jeremygan2021
2026-03-20 13:54:51 +08:00
parent d76b5845a1
commit 76bb5945ac

View File

@@ -394,11 +394,11 @@ def project_detail_api(request, project_id):
peer_score = sum(
float(s.score) * float(s.dimension.weight)
for s in peer_project_scores
)
peer_total += peer_score
peer_count += 1
if peer_count > 0:
peer_score_avg = round(peer_total / peer_count, 2)
)
peer_total += peer_score
peer_count += 1
if peer_count > 0:
peer_score_avg = round(peer_total / peer_count, 2)
# AI评分is_public=False 且 is_peer_review=False 的维度两个都为false就是AI维度
ai_dimensions = ScoreDimension.objects.filter(