From 99142fd6625b3bf3ef013bbd3bc1813c5d95923f Mon Sep 17 00:00:00 2001 From: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> Date: Mon, 2 Jun 2025 12:01:21 -0400 Subject: [PATCH] Plando Items: Fix count with empty locations/location #5040 --- Options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Options.py b/Options.py index 3d08c5f003..26e145926e 100644 --- a/Options.py +++ b/Options.py @@ -1524,9 +1524,11 @@ class PlandoItems(Option[typing.List[PlandoItem]]): f"dictionary, not {type(items)}") locations = item.get("locations", []) if not locations: - locations = item.get("location", ["Everywhere"]) + locations = item.get("location", []) if locations: count = 1 + else: + locations = ["Everywhere"] if isinstance(locations, str): locations = [locations] if not isinstance(locations, list):