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:
b4703e7
)
Enforce .show on single-item listings.
master
author
Plom Heller
<plom@plomlompom.com>
Mon, 1 Jun 2026 01:23:28 +0000
(
03:23
+0200)
committer
Plom Heller
<plom@plomlompom.com>
Mon, 1 Jun 2026 01:23:28 +0000
(
03:23
+0200)
bricksplom.py
patch
|
blob
|
history
diff --git
a/bricksplom.py
b/bricksplom.py
index 7f675e2759006f70bdd87072bd77e431eaf68083..a8fe53c2ae0f2c5e6da764fed81a4b753d3b67e7 100755
(executable)
--- 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 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))
return CHAR_NEWLINE.join(
[(item.raw() if isinstance(item, Textfiled) and show_raw
else str(item))