$def with (books=None, books_wo_isbns=None)
$if not books:

$_("Import from Goodreads")

For instructions on exporting data refer to: Goodreads Import/Export


$_("File size limit 10MB and .csv file type only")

$_("Export your Reading Log")

$else:
$ keys = ['ISBN', 'Title', 'My Rating', 'Exclusive Shelf']
$for key in keys: $for isbn in books: $for key in keys: $for id in books_wo_isbns: $for key in keys:
$key
$ dict = {'ISBN':'', 'Title':'', 'My Rating':'', 'Exclusive Shelf':''} $ k = ['ISBN', 'My Rating', 'Exclusive Shelf'] $for key in k: $ dict[key] = books[isbn].get(key) $books[isbn].get(key)
$if books_wo_isbns[id].get(key) != '=""': $books_wo_isbns[id].get(key)