Skip to content

Commit

Permalink
change start to end in school year check in can user participate
Browse files Browse the repository at this point in the history
  • Loading branch information
vikibrezinova committed Apr 13, 2024
1 parent fc10eec commit c976faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Meta:

def can_user_participate(self, user):
if self.min_years_until_graduation is not None:
return user.profile.year_of_graduation-get_school_year_start_by_date() \
return user.profile.year_of_graduation-get_school_year_end_by_date() \
>= self.min_years_until_graduation
return True

Expand Down

0 comments on commit c976faa

Please sign in to comment.