Skip to content

Commit

Permalink
Merge branch 'a423717924883673_701_award_cancelled'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Sep 7, 2017
2 parents 50c48fa + 7c9cb0c commit acb70e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions openprocurement/tender/openua/views/award.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ def patch(self):
tender.status = 'active.qualification'
tender.awardPeriod.endDate = None
now = get_now()
award.complaintPeriod.endDate = now
if award.complaintPeriod.endDate > now:
award.complaintPeriod.endDate = now
cancelled_awards = []
for i in tender.awards:
if i.lotID != award.lotID:
continue
i.complaintPeriod.endDate = now
if not i.complaintPeriod.endDate or i.complaintPeriod.endDate > now:
i.complaintPeriod.endDate = now
i.status = 'cancelled'
cancelled_awards.append(i.id)
for i in tender.contracts:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os

version = '2.3.27'
version = '2.3.28'

requires = [
'setuptools',
Expand Down

0 comments on commit acb70e3

Please sign in to comment.