Skip to content

Commit

Permalink
Fixed check_bids
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Feb 17, 2016
1 parent 549fe03 commit 7a588eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openprocurement/tender/openua/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def check_bids(request):
tender = request.validated['tender']
if tender.lots:
[setattr(i.auctionPeriod, 'startDate', None) for i in tender.lots if i.numberOfBids < 2 and i.auctionPeriod and i.auctionPeriod.startDate]
[setattr(i, 'status', 'unsuccessful') for i in tender.lots if i.numberOfBids < 2]
[setattr(i, 'status', 'unsuccessful') for i in tender.lots if i.numberOfBids < 2 and i.status == 'active']
if not set([i.status for i in tender.lots]).difference(set(['unsuccessful', 'cancelled'])):
tender.status = 'unsuccessful'
else:
Expand Down

0 comments on commit 7a588eb

Please sign in to comment.