Skip to content

Commit

Permalink
Use invalidate_bids_under_threshold from auctions.core
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Leitsius committed Sep 18, 2018
1 parent f442249 commit 9017f03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions openprocurement/auctions/dgf/utils.py
Expand Up @@ -88,10 +88,3 @@ def check_status(request):
if standStillEnd <= now:
check_auction_status(request)
return


def invalidate_bids_under_threshold(auction):
value_threshold = round(auction['value']['amount'] + auction['minimalStep']['amount'], 2)
for bid in auction['bids']:
if bid['value']['amount'] < value_threshold:
bid['status'] = 'invalid'
2 changes: 1 addition & 1 deletion openprocurement/auctions/dgf/views/other/auction.py
Expand Up @@ -12,7 +12,7 @@
)
from openprocurement.auctions.core.views.mixins import AuctionAuctionResource

from openprocurement.auctions.dgf.utils import invalidate_bids_under_threshold
from openprocurement.auctions.core.plugins.awarding.base.utils import invalidate_bids_under_threshold


@opresource(name='dgfOtherAssets:Auction Auction',
Expand Down

0 comments on commit 9017f03

Please sign in to comment.