diff --git a/utils.py b/utils.py index e7d4d7f..bc55d12 100644 --- a/utils.py +++ b/utils.py @@ -229,6 +229,11 @@ def get_school_by_id(school_num: str): # doesn't get the passwords def get_all_schools(): pipeline = [ + { + "$match": { + "is_shown": True + } + }, { "$sort": {"count": pymongo.DESCENDING} },