Skip to content

Commit

Permalink
Fix Class Group Error (#640)
Browse files Browse the repository at this point in the history
* Update app.py

* Fix style
  • Loading branch information
internot169 committed Nov 29, 2023
1 parent 7f59b69 commit 4aa0ac6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,12 @@ def gen_opted_out_table():


def is_same_class(a, b):
return a["teacher_username"] == b["teacher_username"] and a["period"] == b["period"]
print(a)
return (
a["teacher_username"] == b["teacher_username"]
and a["period"] == b["period"]
and a["name"] == b["name"]
)


def get_class_schedule(user_class, term_id, censor=True):
Expand Down

0 comments on commit 4aa0ac6

Please sign in to comment.