diff --git a/files/classes/user.py b/files/classes/user.py index e1272a563..7940c607a 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -201,7 +201,7 @@ class User(Base): @property @lazy def hats_owned_proportion_display(self): - total_num_of_hats = g.db.query(HatDef).filter(HatDef.submitter_id == None).count() + total_num_of_hats = g.db.query(HatDef).filter(HatDef.submitter_id == None, HatDef.price > 0).count() proportion = f'{float(self.num_of_owned_hats) / total_num_of_hats:.1%}' return (proportion, total_num_of_hats)