finishing fixing bugs from last commit

This commit is contained in:
John Ladan 2013-10-22 18:37:17 -04:00
parent 73c35979c3
commit b6ce427f06
2 changed files with 1 additions and 2 deletions

View File

@ -85,7 +85,7 @@ def openLibrary_lccn(LCCN):
jsondata = urlopen("http://openlibrary.org/api/books?format=json&jscmd=data&bibkeys=lccn:"+lccn, timeout=3)
except URLError:
return {}
openBook = load(jsondata)
openBook = loads(jsondata.read().decode('utf-8'))
if "lccn:"+lccn not in openBook:
return {'lccn':lccn,'title':'Book not found'}
openBook = openBook["lccn:"+lccn]

View File

@ -84,7 +84,6 @@ class browserWindow:
entry = self.entries[self.topline+row]
cursor = 2
self.w.addnstr(row+3, 1, " "*self.mx,self.mx-2)
sys.stderr.write(str(type(self.selected)))
if self.selected[self.topline+row]:
self.w.addstr(row+3, 1, "*")
else: