fix for --collections

This commit is contained in:
meisnate12 2021-02-17 11:01:24 -05:00
parent f1b6e54083
commit 06671fc912

View file

@ -434,7 +434,7 @@ class Config:
except Failed as e: logger.error(e) except Failed as e: logger.error(e)
logger.info("") logger.info("")
util.seperator("{} Library {}Collections".format(library.name, "Test " if test else "")) util.seperator("{} Library {}Collections".format(library.name, "Test " if test else ""))
collections = (library.collections.keys() & util.get_list(requested_collections)) if requested_collections else library.collections collections = {c: library.collections[c] for c in util.get_list(requested_collections) if c in library.collections} if requested_collections else library.collections
if collections: if collections:
logger.info("") logger.info("")
util.seperator("Mapping {} Library".format(library.name)) util.seperator("Mapping {} Library".format(library.name))