Allow excluding services from live services count

Sometimes we have to make a few services for what really is one
service, for example GOV.UK Pay and GOV.UK Pay Direct Debit. We also
have our own test services which aren’t included in the count of live
services. We currently count these as one service by not including them
in the beta partners spreadsheet.

This adds a column to mark such services as ‘not counted’, which can
later be used to exclude them from reporting.
This commit is contained in:
Chris Hill-Scott
2019-03-25 12:21:02 +00:00
parent 34bcb806ff
commit b3008ee210
2 changed files with 25 additions and 0 deletions

View File

@@ -420,6 +420,7 @@ class Service(db.Model, Versioned):
volume_email = db.Column(db.Integer(), nullable=True, unique=False)
volume_letter = db.Column(db.Integer(), nullable=True, unique=False)
consent_to_research = db.Column(db.Boolean, nullable=True)
count_as_live = db.Column(db.Boolean, nullable=False, default=True)
organisation = db.relationship(
'Organisation',