Skip to content

Commit

Permalink
Merge branch 'a147507835786738_normal_days'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Jul 25, 2016
2 parents 705e854 + 561b553 commit 312ee5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openprocurement/tender/openua/views/award.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def patch(self):
award_status = award.status
apply_patch(self.request, save=False, src=self.request.context.serialize())
if award_status == 'pending' and award.status == 'active':
normalized_end = calculate_normalized_date(award.date, tender, True)
normalized_end = calculate_normalized_date(get_now(), tender, True)
award.complaintPeriod.endDate = calculate_business_date(normalized_end, STAND_STILL_TIME, tender)
tender.contracts.append(type(tender).contracts.model_class({
'awardID': award.id,
Expand Down Expand Up @@ -122,7 +122,7 @@ def patch(self):
i.status = 'cancelled'
add_next_award(self.request)
elif award_status == 'pending' and award.status == 'unsuccessful':
normalized_end = calculate_normalized_date(award.date, tender, True)
normalized_end = calculate_normalized_date(get_now(), tender, True)
award.complaintPeriod.endDate = calculate_business_date(normalized_end, STAND_STILL_TIME, tender)
add_next_award(self.request)
elif award_status == 'unsuccessful' and award.status == 'cancelled' and any([i.status == 'satisfied' for i in award.complaints]):
Expand Down

0 comments on commit 312ee5b

Please sign in to comment.