osclib/stagingapi: provide project_status_final().

This commit is contained in:
Jimmy Berry 2018-11-16 13:33:31 -06:00
parent 416172c325
commit 9b667e759e

View File

@ -1036,6 +1036,10 @@ class StagingAPI(object):
return requests
def project_status_final(self, status):
"""Determine if staging project is both active and no longer pending."""
return status['overall_state'] in ['acceptable', 'review', 'failed']
def days_since_last_freeze(self, project):
"""
Checks the last update for the frozen links