Don't return list[0] when having the library look up an id
This commit is contained in:
parent
67676d2d62
commit
b45117e761
|
@ -70,7 +70,7 @@ class Collection:
|
|||
def find_id(self, file):
|
||||
stripped = file.strip(libsaria.path.sep)
|
||||
split = stripped.split(libsaria.path.sep)
|
||||
return self.fs_tree.walk_path(split)[0]
|
||||
return self.fs_tree.walk_path(split)
|
||||
|
||||
def get_attr(self, id, attr):
|
||||
rec = self.records[id]
|
||||
|
|
Loading…
Reference in New Issue