) -> 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:
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)]: