Extract content using the arguments passed in (not the defaults).

master
Pacman Ghost 3 years ago
parent a8a5c97153
commit 4b56a726d2
  1. 4
      asl_rulebook2/extract/content.py

@ -65,7 +65,7 @@ class ExtractContent( ExtractBase ):
# figure out which pages to process
chapter_pages = {} # maps chapters to page numbers
page_index = {} # maps page numbers to chapter
for key, val in _DEFAULT_ARGS.items():
for key, val in self._args.items():
if key.startswith( "chapter-" ):
page_nos = parse_page_numbers( val )
assert len(key) == 9
@ -409,7 +409,7 @@ class ExtractContent( ExtractBase ):
]
# process each chapter
for arg, val in _DEFAULT_ARGS.items():
for arg, val in self._args.items():
mo = re.search( r"^chapter-([a-z])$", arg )
if not mo:
continue

Loading…
Cancel
Save