From 4bf8b74ec78c47d9ab7414adfa2a4aa3a199e772 Mon Sep 17 00:00:00 2001 From: Plom Heller Date: Mon, 1 Jun 2026 03:23:28 +0200 Subject: [PATCH] Enforce .show on single-item listings. --- bricksplom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bricksplom.py b/bricksplom.py index 7f675e2..a8fe53c 100755 --- a/bricksplom.py +++ b/bricksplom.py @@ -684,6 +684,8 @@ class BricksDb: if filter_by: items = tuple(item for item in items if item.match(filter_by[0], filter_by[1:])) + if len(items) == 1 and not show_raw: + return items[0].show() return CHAR_NEWLINE.join( [(item.raw() if isinstance(item, Textfiled) and show_raw else str(item)) -- 2.30.2