Merge pull request #291 from grant-project/canceled-failed-fix
Don't change proposal to FAILED if it was CANCELED
This commit is contained in:
commit
ed4610c17f
|
@ -63,8 +63,8 @@ class ProposalDeadline:
|
|||
from grant.proposal.models import Proposal
|
||||
proposal = Proposal.query.filter_by(id=task.blob["proposal_id"]).first()
|
||||
|
||||
# If it was deleted or successful, just noop out
|
||||
if not proposal or proposal.is_funded:
|
||||
# If it was deleted, canceled, or successful, just noop out
|
||||
if not proposal or proposal.is_funded or proposal.stage != ProposalStage.FUNDING_REQUIRED:
|
||||
return
|
||||
|
||||
# Otherwise, mark it as failed and inform everyone
|
||||
|
|
Loading…
Reference in New Issue