1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-21 06:41:30 +02:00

Fixed bom.py, views.py and tests.py so that vitamin descriptions can contain more than one colon.

This commit is contained in:
Chris Palmer
2023-04-29 09:22:35 +01:00
parent deb0c14aa2
commit b1592f51d4
3 changed files with 8 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ class BOM:
for part in sorted(self.vitamins):
i += 1
if ': ' in part:
part_no, description = part.split(': ')
part_no, description = part.split(': ', 1)
else:
part_no, description = "", part
qty = self.vitamins[part].count
@@ -183,7 +183,7 @@ class BOM:
for part in sorted(self.vitamins):
if ': ' in part:
part_no, description = part.split(': ')
part_no, description = part.split(': ', 1)
else:
part_no, description = "", part
if breakdown: