Skip to content

Commit

Permalink
remove True from if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
razinc committed Dec 2, 2023
1 parent 7523879 commit 5471058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def set_attr():
fpl = FPL(session)
gameweeks = await fpl.get_gameweeks()
for gameweek in gameweeks:
if gameweek.finished == True or gameweek.is_current == True:
if gameweek.finished or gameweek.is_current:
current_gw = gameweek.id
no_of_prev_gws = 3
prev_n_gws = [
Expand Down
2 changes: 1 addition & 1 deletion custom/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def builder(self, ownership, tqdm_desc):
i for i, x in enumerate(gameweeks) if x == f"Gameweek {gw}"
]
for i in indices:
if player["fixtures"][i]["is_home"] == True:
if player["fixtures"][i]["is_home"]:
team_id = player["fixtures"][i]["team_a"]
where = "H"
else:
Expand Down

0 comments on commit 5471058

Please sign in to comment.