Skip to content

Commit

Permalink
Merge pull request #19 from oleksiyVeretiuk/redundant_next_check
Browse files Browse the repository at this point in the history
Remove redundant next checks
  • Loading branch information
vmotso committed Feb 4, 2019
2 parents bd07be2 + 537246a commit 3a3e146
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions openprocurement/auctions/appraisal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,6 @@ def next_check(self):
checks.append(self.auctionPeriod.startDate.astimezone(TZ))
elif now < calc_auction_end_time(NUMBER_OF_STAGES, self.auctionPeriod.startDate).astimezone(TZ):
checks.append(calc_auction_end_time(NUMBER_OF_STAGES, self.auctionPeriod.startDate).astimezone(TZ))
elif not self.lots and self.status == 'active.qualification':
for award in self.awards:
if award.status == 'pending':
checks.append(award.verificationPeriod.endDate.astimezone(TZ))
elif not self.lots and self.status == 'active.awarded' and not any([
i.status in self.block_complaint_status
for i in self.complaints
Expand All @@ -344,9 +340,6 @@ def next_check(self):
for a in self.awards
if a.complaintPeriod.endDate
]
for award in self.awards:
if award.status == 'active':
checks.append(award.signingPeriod.endDate.astimezone(TZ))

last_award_status = self.awards[-1].status if self.awards else ''
if standStillEnds and last_award_status == 'unsuccessful':
Expand Down

0 comments on commit 3a3e146

Please sign in to comment.