From 3eca6b22ef70aa0fecf0a221d68bd34a6a2fa16c Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 23 Feb 2020 23:40:08 +0400 Subject: Added hidden profiles. --- states.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'states.py') diff --git a/states.py b/states.py index 00203b0..b25cc4a 100644 --- a/states.py +++ b/states.py @@ -35,9 +35,6 @@ def calc_score(t, base_score=1000): return round(min(k * (t - max_t) * (t - max_t) + min_score, base_score), 2) -def calculate_attempts(attempts): - pass - class States: @staticmethod @save_state @@ -173,7 +170,7 @@ class States: top = {} for attempt in attempts: - if not attempt["solved"]: + if not attempt["solved"] or attempt["profile"]["is_hidden"]: continue if attempt["profile"]["tg_id"] not in top: -- cgit v1.2.3