Skip to content

Commit 053e96c

Browse files
committed
about cosmetic
bugfix
1 parent 253f34c commit 053e96c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Setting:
2929

3030

3131
SETTINGS = {
32-
'stake': Setting('validator', False, 'Stake amount'),
32+
'stake': Setting('validator', None, 'Stake amount'),
3333
'stakePercent': Setting('validator', 99, 'Stake percent if `stake` is null'),
3434
'isSlashing': Setting('validator', None, 'Create complaints to validators'),
3535
'maxFactor': Setting('validator', None, 'Param send to Elector. if null will be taken from 17 config param'),

mytonctrl/mytonctrl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ def about(local, ton, args):
190190
color_print(f"{{red}}Mode {mode_name} not found{{endc}}")
191191
return
192192
mode_settings = get_mode_settings(mode_name)
193-
color_print(f'''{{cyan}}===[ {mode_name} MODE ]==={{cyan}}=''')
193+
color_print(f'''{{cyan}}===[ {mode_name} MODE ]==={{endc}}''')
194194
color_print(f'''Description: {mode.description}''')
195195
color_print('Enabled: ' + color_text('{green}yes{endc}' if ton.get_mode_value(mode_name) else '{red}no{endc}'))
196196
print('Settings:', 'no' if len(mode_settings) == 0 else '')
197197
for setting_name, setting in mode_settings.items():
198-
print(f' {setting_name}: {setting.description}. Default value: {setting.default_value}')
198+
color_print(f' {{bold}}{setting_name}{{endc}}: {setting.description}.\n Default value: {setting.default_value}')
199199
#end define
200200

201201

0 commit comments

Comments
 (0)