obi import: progress bar fixed when using --only option
This commit is contained in:
@ -105,7 +105,11 @@ def run(config):
|
|||||||
if input is None: # TODO check for bytes instead now?
|
if input is None: # TODO check for bytes instead now?
|
||||||
raise Exception("Could not open input URI")
|
raise Exception("Could not open input URI")
|
||||||
|
|
||||||
entry_count = input[4]
|
if config['obi']['only'] is not None:
|
||||||
|
entry_count = min(input[4], config['obi']['only'])
|
||||||
|
else:
|
||||||
|
entry_count = input[4]
|
||||||
|
|
||||||
logger("info", "Importing %d entries", entry_count)
|
logger("info", "Importing %d entries", entry_count)
|
||||||
|
|
||||||
# TODO a bit dirty?
|
# TODO a bit dirty?
|
||||||
|
Reference in New Issue
Block a user