From db94af4b24b02555f92ecec61e2d72218baa6eb9 Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Tue, 29 Nov 2022 21:52:32 +0100 Subject: [PATCH] Fixed attribute names to be consistent on/off --- main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 8541367..0afc2f4 100644 --- a/main.py +++ b/main.py @@ -36,21 +36,21 @@ def index(): }, { 'name': 'toggle', - 'text_true': '🔊', - 'text_false': '🔇', + 'text_on': '🔊', + 'text_off': '🔇', 'default': False, - 'cmd_true': 'mpg123 ~/tng_viewscreen_on.mp3', - 'cmd_false': 'mpg123 ~/tng_viewscreen_off.mp3', + 'cmd_on': 'mpg123 ~/tng_viewscreen_on.mp3', + 'cmd_off': 'mpg123 ~/tng_viewscreen_off.mp3', 'cooldown': 1000, 'show_cooldown': False }, { 'name': 'toggle', - 'text_true': '🔊', - 'text_false': '🔇', + 'text_on': '🔊', + 'text_off': '🔇', 'default': False, - 'cmd_true': 'touch ~/testfile.tmp', - 'cmd_false': 'rm ~/testfile.tmp', + 'cmd_on': 'touch ~/testfile.tmp', + 'cmd_off': 'rm ~/testfile.tmp', 'check_cmd': '~/check_if_file_exists.sh', 'cooldown': 1000, 'show_cooldown': False