forked from DGNum/uptime-kuma-api
improve notification type conversion
This commit is contained in:
parent
d29d908b61
commit
b92263dd47
9 changed files with 365 additions and 172 deletions
10
scripts/build_params_map_notification_provider_options.j2
Normal file
10
scripts/build_params_map_notification_provider_options.j2
Normal file
|
@ -0,0 +1,10 @@
|
|||
params_map_notification_provider_options = {
|
||||
{%- for provider in notification_provider_map %}
|
||||
{%- set options = notification_provider_map[provider] %}
|
||||
'{{ provider }}': {
|
||||
{%- for key, value in options.items() %}
|
||||
'{{ key }}': '{{ value }}',
|
||||
{%- endfor %}
|
||||
},
|
||||
{%- endfor %}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue