diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-12-11 21:27:59 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-12-11 21:27:59 +0100 |
commit | 9cc33fb4c079d899fdb21d8d3b180294b507d173 (patch) | |
tree | 3644b9bc058db035076ec20f3ed9d07049ab8427 /glucometerutils/common.py | |
parent | Allow sorting the dumped data; sort by date by default. (diff) | |
download | glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.tar glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.tar.gz glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.tar.bz2 glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.tar.lz glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.tar.xz glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.tar.zst glucometerutils-9cc33fb4c079d899fdb21d8d3b180294b507d173.zip |
Diffstat (limited to 'glucometerutils/common.py')
-rw-r--r-- | glucometerutils/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py index 825dea1..38f735e 100644 --- a/glucometerutils/common.py +++ b/glucometerutils/common.py @@ -8,6 +8,8 @@ __license__ = 'MIT' import collections +from glucometerutils import exceptions + # Constants for units UNIT_MGDL = 'mg/dL' UNIT_MMOLL = 'mmol/L' @@ -18,8 +20,6 @@ VALID_UNITS = [UNIT_MGDL, UNIT_MMOLL] DATETIME_12HR = '12 hours' DATETIME_24HR = '24 hours' -from glucometerutils import exceptions - def convert_glucose_unit(value, from_unit, to_unit=None): """Convert the given value of glucose level between units. |