Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-khan committed Jul 24, 2024
1 parent b5a5594 commit 01049fa
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ def handle(self, *args, **options):
).exclude(stockrecords__partner_sku__icontains="mobile").first()

if not web_seat:
logger.info('While syncing could not find web seat for {}'.format(product.title) )
logger.info('While syncing could not find web seat for %s', product.title)
continue

for mobile_seat in mobile_seats:
info = 'Syncing {} with {}'.format(mobile_seat.title, web_seat.title)
logger.info(info)
logger.info('Syncing %s with %s', mobile_seat.title, web_seat.title)

stock_record = mobile_seat.stockrecords.all()[0]
stock_record.price_excl_tax = web_seat.stockrecords.all()[0].price_excl_tax
Expand Down

0 comments on commit 01049fa

Please sign in to comment.