Skip to content

Commit

Permalink
refactor: 하드 코딩된 현재 기수 값 상수로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchef1 committed May 5, 2024
1 parent 5330ae3 commit 4dfa5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def get(self, request):
pass

# 누적 출석부 get
if user.generation == 11:
if user.generation == CURRENT_GENERATION:
# 운영진 -> 아기사자 전체 누적 출석
if user.is_admin == True:
members = User.objects.filter(generation=11, is_admin=False)
members = User.objects.filter(generation=CURRENT_GENERATION, is_admin=False)
# generation 현재 - 2012
total_attendances = []

Expand Down

0 comments on commit 4dfa5e9

Please sign in to comment.