From d57b93faaebb6515ad773cd56359627e78100dcc Mon Sep 17 00:00:00 2001 From: Mark Tinberg Date: Fri, 13 Nov 2020 09:36:53 -0600 Subject: [PATCH] Strip invalid spaces from Manufacturer slug generation --- nb-dt-import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb-dt-import.py b/nb-dt-import.py index 78a5981..222b506 100644 --- a/nb-dt-import.py +++ b/nb-dt-import.py @@ -52,7 +52,7 @@ def readYAMl(files): manufacturer = data['manufacturer'] data['manufacturer'] = {} data['manufacturer']['name'] = manufacturer - data['manufacturer']['slug'] = manufacturer.lower() + data['manufacturer']['slug'] = manufacturer.lower().replace(" ", "") deviceTypes.append(data) manufacturers.append(manufacturer) return deviceTypes