Commit c0ee9796 authored by André Anjos's avatar André Anjos 💬
Browse files

Fixes query of models

parent 6b51585d
......@@ -72,7 +72,8 @@ class Database(bob.db.base.SQLiteDatabase):
def finger_name_from_model_id(self, model_id):
"""Returns the unique finger name in the database given a ``model_id``"""
return self.query(File).filter(File.model_id==model_id).one().unique_name
model = self.query(Model).filter(
return model.finger.unique_name
def model_ids(self, protocol=None, groups=None):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment