From 871a9154da6386e12f4b3aa7fc660d09be0d5068 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 19 Oct 2018 16:47:20 -0500 Subject: [PATCH] Update some timeout field docstrings, per latest refactor --- rattail_tempmon/db/model.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/rattail_tempmon/db/model.py b/rattail_tempmon/db/model.py index e172e86..bf56f50 100644 --- a/rattail_tempmon/db/model.py +++ b/rattail_tempmon/db/model.py @@ -214,16 +214,14 @@ class Probe(Base): # TODO: deprecate / remove this therm_status_timeout = sa.Column(sa.Integer(), nullable=False, doc=""" - Number of minutes the temperature is allowed to be "high" before the first - "high temp" email alert is sent. This is typically meant to account for - the length of the defrost cycle. Note that this does *not* affect the - "critical temp" emails; those are sent as soon as critical temp is reached. + NOTE: This field is deprecated; please set the value for High Timeout instead. """) status_alert_timeout = sa.Column(sa.Integer(), nullable=False, doc=""" - Number of minutes between successive "high/critical temp" emails. These - alerts will continue to be sent until the temperature returns to normal - range. + Number of minutes between successive status alert emails. These alerts + will continue to be sent until the status changes. Note that the *first* + alert for a given status will be delayed according to the timeout for that + status. """) notes = sa.Column(sa.Text(), nullable=True, doc="""