DB-API: fixed error in find_initial_person

This commit is contained in:
Doug Blank 2015-05-26 11:35:56 -04:00
parent 1830e2b943
commit 8551a0b071

View File

@ -2099,7 +2099,7 @@ class DBAPI(DbWriteBase, DbReadBase, UpdateCallback, Callback):
cur = self.dbapi.execute("SELECT handle FROM person;") cur = self.dbapi.execute("SELECT handle FROM person;")
row = cur.fetchone() row = cur.fetchone()
if row: if row:
return row[0] return self.get_person_from_handle(row[0])
def get_bookmarks(self): def get_bookmarks(self):
return self.bookmarks return self.bookmarks