From 2fceffe160995ab1f24a48da0d866f1a3a4d46f6 Mon Sep 17 00:00:00 2001 From: Plom Heller Date: Sat, 15 Aug 2026 00:49:34 +0200 Subject: [PATCH] For -f raw on designs, preserve "==". --- src/bricksplom/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bricksplom/misc.py b/src/bricksplom/misc.py index 436ffa0..e7d276d 100644 --- a/src/bricksplom/misc.py +++ b/src/bricksplom/misc.py @@ -500,7 +500,8 @@ class BrickDesign(Textfiled, WithDb, Lookupable): attrs = [] for attr_key in [k for k in BrickDesignData.sortables() if k != 'description' and not self.at_default(k)]: - attrs += [f'{attr_key}{CHAR_ATTR_EQ}{getattr(self, attr_key)}'] + operator = CHAR_ATTR_EQ * (1 + int(self.secured(attr_key))) + attrs += [f'{attr_key}{operator}{getattr(self, attr_key)}'] attrs += [f'{SEP_DESIGN_DESC}{self.description}'] return f'{raw}{CHAR_SEP_TOKEN.join(attrs)}' -- 2.30.2