Skip to content

Commit

Permalink
lint: fix multiple-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
hoosnick committed Sep 8, 2023
1 parent 396c7be commit 1030250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/payme/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def get_items_display(self):
order_id = orders[0].get('id') if orders else 'None'

item_display.append(f'FOR ORDER - {order_id}')
if self.shipping: item_display.append(f'ADDRESS: {self.shipping.title}')
if self.shipping:
item_display.append(f'ADDRESS: {self.shipping.title}')
item_display.append(f'AMOUNT: {self.get_total_items_price} UZS')

return ' '.join(item_display)
Expand Down

0 comments on commit 1030250

Please sign in to comment.