Skip to content

Commit

Permalink
Retrieve single value for all units
Browse files Browse the repository at this point in the history
  • Loading branch information
micah-prime authored Aug 8, 2024
1 parent 7891894 commit ca197a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowexsql/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ca197a6

Please sign in to comment.