Fix bug when no filters are applied
This commit is contained in:
parent
f453a41a29
commit
6926f2fcf1
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user