Fix bug when no filters are applied

This commit is contained in:
Zoé Cassiopée Gauthier 2024-04-11 21:36:31 -04:00
parent f453a41a29
commit 6926f2fcf1

View File

@ -25,7 +25,7 @@ def main_cli():
) )
args = parser.parse_args() args = parser.parse_args()
filters = reduce(operator.or_, args.filters, Filter.NO_FILTER) filters = reduce(operator.or_, args.filters or [], Filter.NO_FILTER)
calculator = Calculator(args.type, filters) calculator = Calculator(args.type, filters)
calculator.calculate(level=args.level, party=args.party) calculator.calculate(level=args.level, party=args.party)