Strip invalid spaces from Manufacturer slug generation

This commit is contained in:
Mark Tinberg 2020-11-13 09:36:53 -06:00
parent a78df75074
commit d57b93faae

View File

@ -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