mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
pep8
This commit is contained in:
parent
b52d286cf5
commit
bb4a2b6010
1 changed files with 15 additions and 15 deletions
|
|
@ -26,7 +26,6 @@
|
||||||
from calibre.gui2.dialogs.tag_editor import TagEditor
|
from calibre.gui2.dialogs.tag_editor import TagEditor
|
||||||
from calibre.gui2.dialogs.template_line_editor import TemplateLineEditor
|
from calibre.gui2.dialogs.template_line_editor import TemplateLineEditor
|
||||||
from calibre.gui2.metadata.basic_widgets import CalendarWidget
|
from calibre.gui2.metadata.basic_widgets import CalendarWidget
|
||||||
from calibre.gui2.progress_indicator import ProgressIndicator
|
|
||||||
from calibre.utils.config import JSONConfig, dynamic, prefs, tweaks
|
from calibre.utils.config import JSONConfig, dynamic, prefs, tweaks
|
||||||
from calibre.utils.date import qt_to_dt
|
from calibre.utils.date import qt_to_dt
|
||||||
from calibre.utils.icu import capitalize, sort_key
|
from calibre.utils.icu import capitalize, sort_key
|
||||||
|
|
@ -67,19 +66,21 @@ def __init__(self, args, ids, db, refresh_books, cc_widgets, s_r_func, do_sr, sr
|
||||||
self._layout = l = QVBoxLayout()
|
self._layout = l = QVBoxLayout()
|
||||||
self.setLayout(l)
|
self.setLayout(l)
|
||||||
# Every Path that will be taken in do_all
|
# Every Path that will be taken in do_all
|
||||||
options = [ args.cover_action == 'fromfmt' or args.read_file_metadata,
|
options = [
|
||||||
args.do_swap_ta, args.do_title_case and not
|
args.cover_action == 'fromfmt' or args.read_file_metadata,
|
||||||
args.do_swap_ta, args.do_title_sort, bool(args.au),
|
args.do_swap_ta, args.do_title_case and not
|
||||||
args.do_auto_author, bool(args.aus) and args.do_aus,
|
args.do_swap_ta, args.do_title_sort, bool(args.au),
|
||||||
args.cover_action == 'remove' or args.cover_action ==
|
args.do_auto_author, bool(args.aus) and args.do_aus,
|
||||||
'generate' or args.cover_action == 'trim' or
|
args.cover_action == 'remove' or args.cover_action ==
|
||||||
args.cover_action == 'clone', args.restore_original,
|
'generate' or args.cover_action == 'trim' or
|
||||||
args.rating != -1, args.clear_pub, bool(args.pub),
|
args.cover_action == 'clone', args.restore_original,
|
||||||
args.clear_series, args.pubdate is not None, args.adddate
|
args.rating != -1, args.clear_pub, bool(args.pub),
|
||||||
is not None, args.do_series, bool(args.series) and
|
args.clear_series, args.pubdate is not None, args.adddate
|
||||||
args.do_autonumber, args.comments is not null,
|
is not None, args.do_series, bool(args.series) and
|
||||||
args.do_remove_conv, args.clear_languages, args.remove_all,
|
args.do_autonumber, args.comments is not null,
|
||||||
bool(do_sr) ]
|
args.do_remove_conv, args.clear_languages, args.remove_all,
|
||||||
|
bool(do_sr)
|
||||||
|
]
|
||||||
self.selected_options = sum(options)
|
self.selected_options = sum(options)
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print("Number of steps for bulk metadata: %d" % self.selected_options)
|
print("Number of steps for bulk metadata: %d" % self.selected_options)
|
||||||
|
|
@ -343,7 +344,6 @@ def get_sort(book_id):
|
||||||
self.progress_update.emit(1)
|
self.progress_update.emit(1)
|
||||||
self.progress_finished_cur_step.emit()
|
self.progress_finished_cur_step.emit()
|
||||||
|
|
||||||
|
|
||||||
# Various fields
|
# Various fields
|
||||||
if args.rating != -1:
|
if args.rating != -1:
|
||||||
self.progress_next_step_range.emit(0)
|
self.progress_next_step_range.emit(0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue