def process_submission_question(a_submission, q_submission):
    # Check how many peer reviews have been made and stop if non where made.
    total_reviews = q_submission.reviews.count()
    if total_reviews == 0:
        q_submission.marks = 0
        q_submission.save()
        return
    
    # Iterate through all the peer reviews and make a distributed weighted
    # average calculation.
    marks = 0
    reviewer_weight = total_reviews / 1
    for peer_review in q_submission.reviews.all():
        weight = peer_review.marks / 5
        reviewer_mark = weight * q_submission.question.marks
        distributed_mark = reviewer_mark * reviewer_weight
        marks += distributed_mark
    q_submission.marks = marks
    q_submission.save()
dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/teacher/views/peer_review.py/process_submission_question/swapped operands of `/`