Skip to content

Commit ce0824b

Browse files
committed
Fixed minmax if no user bday
1 parent beb74d1 commit ce0824b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/PyMatcha/utils/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def calc_search_min_max():
124124
min_age = 100
125125
max_age = 0
126126
for user in User.select_all():
127+
if not user.birthdate:
128+
continue
127129
if user.heat_score > max_score:
128130
max_score = user.heat_score
129131
if user.heat_score < min_score:

0 commit comments

Comments
 (0)