diff --git a/snowexsql/api.py b/snowexsql/api.py index d38c4d1..f515add 100644 --- a/snowexsql/api.py +++ b/snowexsql/api.py @@ -210,7 +210,7 @@ def all_units(self): with db_session(self.DB_NAME) as (session, engine): qry = session.query(self.MODEL.units).distinct() result = qry.all() - return result + return self.retrieve_single_value_result(result) @property def all_instruments(self):