Position setting should work all the time now

Learn not to swear so much at the screen
Cover icons in the tab bar
Shift Scan Library button from the Library tab to the Library toolbar
This commit is contained in:
BasioMeusPuga
2018-03-29 01:45:58 +05:30
parent ab6760226e
commit 406ca0485f
6 changed files with 69 additions and 61 deletions

View File

@@ -118,7 +118,7 @@ class BookSorter:
def database_entry_for_book(self, file_hash):
database_return = database.DatabaseFunctions(
self.database_path).fetch_data(
('Title', 'Author', 'Year', 'ISBN', 'Tags', 'Position', 'Bookmarks'),
('Title', 'Author', 'Year', 'ISBN', 'Tags', 'Position', 'Bookmarks', 'CoverImage'),
'books',
{'Hash': file_hash},
'EQUALS')[0]
@@ -231,11 +231,13 @@ class BookSorter:
tags = book_data[4]
position = book_data[5]
bookmarks = book_data[6]
cover = book_data[7]
this_book[file_md5]['position'] = position
this_book[file_md5]['bookmarks'] = bookmarks
this_book[file_md5]['content'] = content
this_book[file_md5]['images_only'] = images_only
this_book[file_md5]['cover'] = cover
this_book[file_md5]['title'] = title
this_book[file_md5]['author'] = author