Skip to content
Snippets Groups Projects
Commit 9a71add1 authored by David Baker's avatar David Baker
Browse files

Use set_tweak instead of set_sound

parent 09601255
No related branches found
No related tags found
No related merge requests found
...@@ -400,8 +400,8 @@ def _tweaks_for_actions(actions): ...@@ -400,8 +400,8 @@ def _tweaks_for_actions(actions):
for a in actions: for a in actions:
if not isinstance(a, dict): if not isinstance(a, dict):
continue continue
if 'set_sound' in a: if 'set_tweak' in a and 'value' in a:
tweaks['sound'] = a['set_sound'] tweaks[a['set_tweak']] = a['value']
return tweaks return tweaks
......
...@@ -38,7 +38,8 @@ def make_base_rules(user_name): ...@@ -38,7 +38,8 @@ def make_base_rules(user_name):
'actions': [ 'actions': [
'notify', 'notify',
{ {
'set_sound': 'default' 'set_tweak': 'sound',
'value': 'default'
} }
] ]
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment