Always put the current brick name in the first column

merge/2021-11-19
kaetemi 4 years ago
parent 3d174a1294
commit be7ee784ec
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -30,7 +30,7 @@ def loadTsv(filename):
return table;
preserveIndex = True
if preserveIndex:
if preserveIndex and os.path.isfile("sbrick_index.tsv"):
table = loadTsv("sbrick_index.tsv")
for entry in table:
e = filter(None, entry)
@ -78,7 +78,7 @@ for sbrick in fileMap:
templateName = familyId.lower() + str(int(indexInFamily)).zfill(2)
entryName = familyId + str(int(indexInFamily)).zfill(4) # + name
entry = [ familyId, indexInFamily ]
if name != templateName:
if name:
entry += [ name ]
if sitem != templateName and sitem != name:
entry += [ sitem ]

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save