Fixed variable name conflict

This commit is contained in:
Fabio Manganiello 2022-06-02 01:44:38 +02:00
parent f080478385
commit d3f4865395
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -226,6 +226,7 @@ class NtfyPlugin(RunnablePlugin):
""" """
method = requests.post method = requests.post
click_url = url
url = server_url or self._server_url url = server_url or self._server_url
args = {} args = {}
if username and password: if username and password:
@ -240,7 +241,7 @@ class NtfyPlugin(RunnablePlugin):
args['headers'] = { args['headers'] = {
'Filename': filename, 'Filename': filename,
**({'X-Title': title} if title else {}), **({'X-Title': title} if title else {}),
**({'X-Click': url} if url else {}), **({'X-Click': click_url} if click_url else {}),
**({'X-Email': email} if email else {}), **({'X-Email': email} if email else {}),
**({'X-Priority': priority} if priority else {}), **({'X-Priority': priority} if priority else {}),
**({'X-Tags': ','.join(tags)} if tags else {}), **({'X-Tags': ','.join(tags)} if tags else {}),
@ -255,7 +256,7 @@ class NtfyPlugin(RunnablePlugin):
'topic': topic, 'topic': topic,
'message': message, 'message': message,
**({'title': title} if title else {}), **({'title': title} if title else {}),
**({'click': url} if url else {}), **({'click': click_url} if click_url else {}),
**({'email': email} if email else {}), **({'email': email} if email else {}),
**({'priority': priority} if priority else {}), **({'priority': priority} if priority else {}),
**({'tags': tags} if tags else {}), **({'tags': tags} if tags else {}),