Use set_tweak instead of set_sound

pull/52/head
David Baker 2015-02-03 16:06:31 +00:00
parent 09601255f5
commit 9a71add1c0
2 changed files with 4 additions and 3 deletions

View File

@ -400,8 +400,8 @@ def _tweaks_for_actions(actions):
for a in actions:
if not isinstance(a, dict):
continue
if 'set_sound' in a:
tweaks['sound'] = a['set_sound']
if 'set_tweak' in a and 'value' in a:
tweaks[a['set_tweak']] = a['value']
return tweaks

View File

@ -38,7 +38,8 @@ def make_base_rules(user_name):
'actions': [
'notify',
{
'set_sound': 'default'
'set_tweak': 'sound',
'value': 'default'
}
]
}