This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user