Don't return list[0] when having the library look up an id

This commit is contained in:
Bryan Schumaker 2010-10-19 22:30:57 -04:00
parent 67676d2d62
commit b45117e761
1 changed files with 1 additions and 1 deletions

View File

@ -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]