If a user's nightscout contains an entry that is outside the -999 <= sgv <= 999 range, executing /graph while that entry is in the hour range specified will make the command only return Error: value must be between -999 and 999.
Until the erroneous entry/entries are either removed manually, or the entry/entries are older than the hour value specified, /graph is effectively broken for them. This PR makes the /graph command ignore entries outside of the allowed range, restoring the graphing functionality despite having erroneous entries.
If a user's nightscout contains an entry that is outside the
-999 <= sgv <= 999
range, executing/graph
while that entry is in the hour range specified will make the command only returnError: value must be between -999 and 999
.Until the erroneous entry/entries are either removed manually, or the entry/entries are older than the hour value specified,
/graph
is effectively broken for them. This PR makes the/graph
command ignore entries outside of the allowed range, restoring the graphing functionality despite having erroneous entries.