File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/openprocurement/api/views Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,12 @@ def patch_auction(request):
151151 tender = request .validated ['tender' ]
152152 auction_data = filter_data (request .validated ['data' ])
153153 if auction_data :
154- auction_data [ 'tenderID' ] = tender . tenderID
154+ now = get_now (). isoformat ()
155155 bids = auction_data .get ('bids' , [])
156156 tender_bids_ids = [i .id for i in tender .bids ]
157157 auction_data ['bids' ] = [x for (y , x ) in sorted (zip ([tender_bids_ids .index (i ['id' ]) for i in bids ], bids ))]
158- auction_data ['auctionPeriod' ] = {'endDate' : get_now ().isoformat ()}
158+ auction_data ['auctionPeriod' ] = {'endDate' : now }
159+ auction_data ['awardPeriod' ] = {'startDate' : now }
159160 auction_data ['status' ] = 'active.qualification'
160161 src = tender .serialize ("plain" )
161162 tender .import_data (apply_data_patch (src , auction_data ))
You can’t perform that action at this time.
0 commit comments