Skip to content

Commit

Permalink
Revert lint fix: comparison to True is bueno
Browse files Browse the repository at this point in the history
See #2474 (comment)

Signed-off-by: Seltyk <whhacker.dcx@gmail.com>
  • Loading branch information
Seltyk committed Aug 2, 2023
1 parent bdfe140 commit 69f0f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion augur/application/db/models/augur_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def toggle_group_favorite(self, group_name):
def get_favorite_groups(self, session):

try:
groups = session.query(UserGroup).filter(UserGroup.user_id == self.user_id, bool(UserGroup.favorited)).all()
groups = session.query(UserGroup).filter(UserGroup.user_id == self.user_id, UserGroup.favorited == True).all()
except Exception as e:
print(f"Error while trying to get favorite groups: {e}")
return None, {"status": "Error when trying to get favorite groups"}
Expand Down

0 comments on commit 69f0f28

Please sign in to comment.