more aethestically pleasing stat placement

master
Aevann 2024-02-08 00:13:21 +02:00
parent 00d90ecf2e
commit e41d7ebf15
1 changed files with 1 additions and 0 deletions

View File

@ -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