Follow up to 745761f, make quiet really quiet (ref #376)

This commit is contained in:
Simon Conseil
2019-10-04 23:22:27 -03:00
parent 146216309b
commit b518ffb774

View File

@@ -175,9 +175,10 @@ def build(source, destination, debug, verbose, quiet, force, config, theme,
opt = ' ({})'.format(', '.join(opt)) if opt else ''
return '{} {}s{}'.format(stats[_type], _type, opt)
print('Done, processed {} and {} in {:.2f} seconds.'
.format(format_stats('image'), format_stats('video'),
time.time() - start_time))
if not quiet:
print('Done, processed {} and {} in {:.2f} seconds.'
.format(format_stats('image'), format_stats('video'),
time.time() - start_time))
def init_plugins(settings):