From a4fb2c417d47125a50b828bcc9610eed556397e8 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Fri, 1 Dec 2023 10:29:45 +0000 Subject: [PATCH] add brackets --- pv_site_api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv_site_api/main.py b/pv_site_api/main.py index b52c8c9..6139130 100644 --- a/pv_site_api/main.py +++ b/pv_site_api/main.py @@ -342,7 +342,7 @@ def get_pv_actual_many_sites( sum_by: can be None, 'total', 'dno' or 'gsp' """ - if site_uuids == "[]" or site_uuids == "": + if (site_uuids == "[]") or (site_uuids == ""): return [] # convert to list of strings