diff --git a/files/helpers/stats.py b/files/helpers/stats.py index 218c7bfc5..68d44d253 100644 --- a/files/helpers/stats.py +++ b/files/helpers/stats.py @@ -124,6 +124,7 @@ def stats(): if FEATURES['HOUSES']: for house in HOUSES: stats[f"House {house} members"] = "{:,}".format(g.db.query(User).filter(User.house.like(f'{house}%')).count()) + for house in HOUSES: stats[f"House {house} total truescore"] = "{:,}".format(g.db.query(func.sum(User.truescore)).filter(User.house.like(f'{house}%')).scalar() or 0) return stats