Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.db.fv3d
Commits
c0ee9796
Commit
c0ee9796
authored
Jan 17, 2017
by
André Anjos
💬
Browse files
Fixes query of models
parent
6b51585d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/db/fv3d/query.py
View file @
c0ee9796
...
...
@@ -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
(
Model
.
id
==
model_id
).
one
()
return
model
.
finger
.
unique_name
def
model_ids
(
self
,
protocol
=
None
,
groups
=
None
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment