summaryrefslogtreecommitdiff
path: root/dexcom_reader
diff options
context:
space:
mode:
authorNathan Racklyeft <loudnate@gmail.com>2015-10-18 21:44:16 -0700
committerBen West <bewest@gmail.com>2016-05-28 11:54:23 -0700
commit30bd94ce14588b9bb73e6893d00f049b5502978a (patch)
treea78918fc7978a0758e41b438f20c3a21c7b910fc /dexcom_reader
parentd6941e6283ee8d9e33ffefea6a76eb4d29348d5b (diff)
Adding additional insertion record states
Diffstat (limited to 'dexcom_reader')
-rw-r--r--dexcom_reader/database_records.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dexcom_reader/database_records.py b/dexcom_reader/database_records.py
index bd0178a..3812573 100644
--- a/dexcom_reader/database_records.py
+++ b/dexcom_reader/database_records.py
@@ -103,7 +103,9 @@ class InsertionRecord(GenericTimestampedRecord):
103 def session_state(self): 103 def session_state(self):
104 states = [None, 'REMOVED', 'EXPIRED', 'RESIDUAL_DEVIATION', 104 states = [None, 'REMOVED', 'EXPIRED', 'RESIDUAL_DEVIATION',
105 'COUNTS_DEVIATION', 'SECOND_SESSION', 'OFF_TIME_LOSS', 105 'COUNTS_DEVIATION', 'SECOND_SESSION', 'OFF_TIME_LOSS',
106 'STARTED', 'BAD_TRANSMITTER', 'MANUFACTURING_MODE'] 106 'STARTED', 'BAD_TRANSMITTER', 'MANUFACTURING_MODE',
107 'UNKNOWN1', 'UNKNOWN2', 'UNKNOWN3', 'UNKNOWN4', 'UNKNOWN5',
108 'UNKNOWN6', 'UNKNOWN7', 'UNKNOWN8']
107 return states[ord(self.data[3])] 109 return states[ord(self.data[3])]
108 110
109 def __repr__(self): 111 def __repr__(self):