mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix queueing of all dirtied books
This commit is contained in:
parent
e7777df9ae
commit
b5bc636178
@ -323,7 +323,10 @@ class LibraryDatabase(object):
|
|||||||
self.notify('delete', [id])
|
self.notify('delete', [id])
|
||||||
|
|
||||||
def dirtied(self, book_ids, commit=True):
|
def dirtied(self, book_ids, commit=True):
|
||||||
self.new_api.mark_as_dirty(book_ids)
|
self.new_api.mark_as_dirty(frozenset(book_ids) if book_ids is not None else book_ids)
|
||||||
|
|
||||||
|
def dirty_queue_length(self):
|
||||||
|
return self.new_api.dirty_queue_length()
|
||||||
|
|
||||||
def dump_metadata(self, book_ids=None, remove_from_dirtied=True, commit=True, callback=None):
|
def dump_metadata(self, book_ids=None, remove_from_dirtied=True, commit=True, callback=None):
|
||||||
self.new_api.dump_metadata(book_ids=book_ids, remove_from_dirtied=remove_from_dirtied, callback=callback)
|
self.new_api.dump_metadata(book_ids=book_ids, remove_from_dirtied=remove_from_dirtied, callback=callback)
|
||||||
|
@ -398,7 +398,7 @@ class LegacyTest(BaseTest):
|
|||||||
'clean_user_categories', 'cleanup_tags', 'books_list_filter', 'conn', 'connect', 'construct_file_name',
|
'clean_user_categories', 'cleanup_tags', 'books_list_filter', 'conn', 'connect', 'construct_file_name',
|
||||||
'construct_path_name', 'clear_dirtied', 'initialize_database', 'initialize_dynamic',
|
'construct_path_name', 'clear_dirtied', 'initialize_database', 'initialize_dynamic',
|
||||||
'run_import_plugins', 'vacuum', 'set_path', 'row', 'row_factory', 'rows', 'rmtree', 'series_index_pat',
|
'run_import_plugins', 'vacuum', 'set_path', 'row', 'row_factory', 'rows', 'rmtree', 'series_index_pat',
|
||||||
'import_old_database', 'dirtied_lock', 'dirtied_cache', 'dirty_queue_length', 'dirty_books_referencing',
|
'import_old_database', 'dirtied_lock', 'dirtied_cache', 'dirty_books_referencing',
|
||||||
'windows_check_if_files_in_use', 'get_metadata_for_dump', 'get_a_dirtied_book', 'dirtied_sequence',
|
'windows_check_if_files_in_use', 'get_metadata_for_dump', 'get_a_dirtied_book', 'dirtied_sequence',
|
||||||
'format_filename_cache', 'format_metadata_cache', 'filter', 'create_version1', 'normpath', 'custom_data_adapters',
|
'format_filename_cache', 'format_metadata_cache', 'filter', 'create_version1', 'normpath', 'custom_data_adapters',
|
||||||
'custom_table_names', 'custom_columns_in_meta', 'custom_tables',
|
'custom_table_names', 'custom_columns_in_meta', 'custom_tables',
|
||||||
|
@ -376,7 +376,7 @@ class ChooseLibraryAction(InterfaceAction):
|
|||||||
dirty_text = 'no'
|
dirty_text = 'no'
|
||||||
try:
|
try:
|
||||||
dirty_text = \
|
dirty_text = \
|
||||||
unicode(self.gui.library_view.model().db.dirty_queue_length())
|
unicode(self.gui.current_db.dirty_queue_length())
|
||||||
except:
|
except:
|
||||||
dirty_text = _('none')
|
dirty_text = _('none')
|
||||||
info_dialog(self.gui, _('Backup status'), '<p>'+
|
info_dialog(self.gui, _('Backup status'), '<p>'+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user