Allow the sorter to check the database

This commit is contained in:
BasioMeusPuga
2017-11-11 05:50:04 +05:30
parent e3684d4cd8
commit 093c272996
4 changed files with 24 additions and 17 deletions

View File

@@ -145,7 +145,7 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
if my_file[0]:
self.listView.setEnabled(False)
self.last_open_path = os.path.dirname(my_file[0][0])
books = sorter.BookSorter(my_file[0])
books = sorter.BookSorter(my_file[0], self.database_path)
parsed_books = books.initiate_threads()
database.DatabaseFunctions(self.database_path).add_to_database(parsed_books)
self.listView.setEnabled(True)