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:
60ceff6
)
Reduce hardcoding of "box:" prefix.
master
author
Plom Heller
<plom@plomlompom.com>
Mon, 4 May 2026 04:29:14 +0000
(06:29 +0200)
committer
Plom Heller
<plom@plomlompom.com>
Mon, 4 May 2026 04:29:14 +0000
(06:29 +0200)
bricksplom.py
patch
|
blob
|
history
diff --git
a/bricksplom.py
b/bricksplom.py
index c085448702f939418953656fc0938dc491fc5dfc..c0ea7e133e4f46dd1791b1ab8978a061ecb5c608 100755
(executable)
--- a/
bricksplom.py
+++ b/
bricksplom.py
@@
-419,7
+419,7
@@
class Box(WithDb, Lookupable):
) -> str:
'Call .raw() of base Collection.'
assert self._db
) -> str:
'Call .raw() of base Collection.'
assert self._db
- return self._db.collections[f'
box:
{self.id_}'].raw()
+ return self._db.collections[f'
{BOX_PREFIX}
{self.id_}'].raw()
class BricksDb:
class BricksDb:
@@
-441,7
+441,7
@@
class BricksDb:
def boxes(
self
) -> dict[str, Box]:
def boxes(
self
) -> dict[str, Box]:
- 'Parsed from
"box:"
-prefixed entries in .collections.'
+ 'Parsed from
BOX_PREFIX
-prefixed entries in .collections.'
collected = {}
for coll in [c for c in self.collections.values()
if c.id_.startswith(BOX_PREFIX)]:
collected = {}
for coll in [c for c in self.collections.values()
if c.id_.startswith(BOX_PREFIX)]: