Skip to content

Commit

Permalink
remove extra str and reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
yarsanich committed Nov 15, 2017
1 parent c3215ea commit e7bab83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openprocurement/auction/insider/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def generate_value(bid_info):
else None
value = auction.auction_document['value']
return {
"amount": str(auction_bid),
"amount": auction_bid,
"currency": value.get('currency'),
"valueAddedTaxIncluded": value.get('valueAddedTaxIncluded')
}
Expand All @@ -74,8 +74,9 @@ def generate_value(bid_info):
except IndexError:
bid = ''
if bid:
if generate_value(bid) is not None:
bid_info['value'] = generate_value(bid)
new_value = generate_value(bid)
if new_value.get('amount', None) is not None:
bid_info['value'] = new_value
bid_info['date'] = bid['time']
data = {'data': {'bids': bids}}
LOGGER.info(
Expand Down

0 comments on commit e7bab83

Please sign in to comment.