diff options
| author | Pavel Egorov <[email protected]> | 2025-12-16 08:22:35 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-12-16 08:22:35 +0300 |
| commit | cff67f2d3fdae125e73b248dec14f09856b6a8d2 (patch) | |
| tree | df43e29125aa86cefc397e744ffad51b52a64508 /.config | |
| parent | fc2a1ddb9d9cd549c5ac80a054a968c0c138901c (diff) | |
| download | dotfiles-cff67f2d3fdae125e73b248dec14f09856b6a8d2.tar.gz dotfiles-cff67f2d3fdae125e73b248dec14f09856b6a8d2.zip | |
[fastfetch] bugfix constructing fastfetch descriptions
Diffstat (limited to '')
| -rw-r--r-- | .config/fastfetch/confgen.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/fastfetch/confgen.py b/.config/fastfetch/confgen.py index 4452582..052b95f 100644 --- a/.config/fastfetch/confgen.py +++ b/.config/fastfetch/confgen.py | |||
| @@ -35,12 +35,12 @@ class Node: | |||
| 35 | key = {"key": f"{{{font_effect}}} {self.key}"} | 35 | key = {"key": f"{{{font_effect}}} {self.key}"} |
| 36 | 36 | ||
| 37 | if self.format: | 37 | if self.format: |
| 38 | format = self.format | 38 | format = {"format": self.format} |
| 39 | else: | 39 | else: |
| 40 | format = {} | 40 | format = {} |
| 41 | 41 | ||
| 42 | if self.text: | 42 | if self.text: |
| 43 | text = self.text | 43 | text = {"text": self.text} |
| 44 | else: | 44 | else: |
| 45 | text = {} | 45 | text = {} |
| 46 | 46 | ||
| @@ -52,8 +52,9 @@ class Node: | |||
| 52 | return module | key | format | text | additional_entries | 52 | return module | key | format | text | additional_entries |
| 53 | 53 | ||
| 54 | def add_children(self, *nodes: type["Node"]): | 54 | def add_children(self, *nodes: type["Node"]): |
| 55 | for node in nodes: | 55 | self.children += nodes |
| 56 | self.children.append(node) | 56 | |
| 57 | |||
| 57 | 58 | ||
| 58 | 59 | ||
| 59 | schema = { | 60 | schema = { |
