Skip to content

Commit

Permalink
Merge pull request #800 from Lunatic-Labs/SKIL-578
Browse files Browse the repository at this point in the history
SKIL-578
  • Loading branch information
sah0017 authored Dec 10, 2024
2 parents 3c6f4cd + bf1bd6a commit 137e9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BackEndFlask/models/completed_assessment.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_completed_assessment_count(assessment_task_id):
@error_log
def completed_assessment_exists(team_id, assessment_task_id, user_id):
if (user_id == -1): # Team assessment, otherwise individual assessment
return CompletedAssessment.query.filter_by(team_id=team_id, assessment_task_id=assessment_task_id, user_id=user_id).first()
return CompletedAssessment.query.filter_by(team_id=team_id, assessment_task_id=assessment_task_id).first()
else:
return CompletedAssessment.query.filter_by(user_id=user_id, assessment_task_id=assessment_task_id).first()

Expand Down

0 comments on commit 137e9de

Please sign in to comment.