Skip to content

Commit

Permalink
only show schools with is_shown==True
Browse files Browse the repository at this point in the history
  • Loading branch information
Belissimo-T committed Jun 19, 2024
1 parent 7735898 commit e070513
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
},
Expand Down

0 comments on commit e070513

Please sign in to comment.