Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions thingdoc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class ThingDoc:
elif key == '@weight':
thing.weight = float(value)
elif key == '@time':
thing.weight = float(time)
thing.time = float(value)
elif key.startswith('@'):
self.error('Unknown tag %s (%s:%d)' % (key, absname, linenum))
success = False
Expand Down Expand Up @@ -341,7 +341,9 @@ class ThingDoc:
using = queue.pop(0)
for (id, cnt) in using:
thing = self.tree[id]
if thing.category in bom:
if thing.assembled:
pass
elif thing.category in bom:
if id in bom[thing.category]:
bom[thing.category][id] += cnt
else:
Expand Down