home
·
contact
·
privacy
projects
/
bricksplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d8511b
)
In (un-)packing boxes helpers, start in-box index count not at 0 but 1.
master
author
Plom Heller
<plom@plomlompom.com>
Fri, 24 Apr 2026 01:47:23 +0000
(
03:47
+0200)
committer
Plom Heller
<plom@plomlompom.com>
Fri, 24 Apr 2026 01:47:23 +0000
(
03:47
+0200)
bricksplom.py
patch
|
blob
|
history
diff --git
a/bricksplom.py
b/bricksplom.py
index 64406098fce2476547b95c1a73adaa88f426cbd4..ccb17efa36fdca26c33fd1172114c7e2a4e43ea0 100755
(executable)
--- a/
bricksplom.py
+++ b/
bricksplom.py
@@
-266,7
+266,7
@@
class Collection(Textfiled):
assert design is not None
description = design.description
box = [b for b in boxes.values() if design.id_ in b.designs][0]
- idx_in_box = box.designs.index(design.id_)
+ idx_in_box = box.designs.index(design.id_)
+ 1
return f'{box.id_:>2}:{idx_in_box:>2}', description
def print_packing_instructions(