Skip to content

Commit

Permalink
Fixed unnecessary parens
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <[email protected]>
  • Loading branch information
toomore committed Jun 9, 2024
1 parent b413665 commit e782eec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions view/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,8 +1372,9 @@ def team_expense_my(pid: str, tid: str) -> str | ResponseBase:

for item in Expense.get_by_create_by(pid=pid, create_by=g.user['account']['_id']):
items[item['_id']] = item
has_dispense = item['dispense_id'] is not None and len(item['dispense_id']) > 0
if (has_dispense):
has_dispense = item['dispense_id'] is not None and len(
item['dispense_id']) > 0
if has_dispense:
dispense_ids.add(item['dispense_id'])

dispense_ids_list = list(dispense_ids)
Expand Down

0 comments on commit e782eec

Please sign in to comment.