From 9cce23749e46697d3fde5896c432e1cf863ea4c4 Mon Sep 17 00:00:00 2001 From: Holmgren Date: Thu, 11 Aug 2022 14:04:32 +0200 Subject: [PATCH] Updated split of r['name'] --- nordpool/elbas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nordpool/elbas.py b/nordpool/elbas.py index 7387820..8380255 100644 --- a/nordpool/elbas.py +++ b/nordpool/elbas.py @@ -47,7 +47,7 @@ def _parse_json(self, data, columns, areas): if r['Name'] is None: continue else: - name = r['Name'].split('-') + name = ' '.join(r['Name'].split('-')).split(' ') # Picks only "PH" product (hourly) if not (name[0] == u'PH'): continue