From 6c8215a30dc9380e59f4009ed351f09e0f063ccb Mon Sep 17 00:00:00 2001 From: Plom Heller Date: Mon, 4 May 2026 06:29:14 +0200 Subject: [PATCH] Reduce hardcoding of "box:" prefix. --- bricksplom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricksplom.py b/bricksplom.py index c085448..c0ea7e1 100755 --- a/bricksplom.py +++ b/bricksplom.py @@ -419,7 +419,7 @@ class Box(WithDb, Lookupable): ) -> 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: @@ -441,7 +441,7 @@ class BricksDb: 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)]: -- 2.30.2