From d3f486539572639b39ac85734296a3f64373564e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 2 Jun 2022 01:44:38 +0200 Subject: [PATCH] Fixed variable name conflict --- platypush/plugins/ntfy/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/ntfy/__init__.py b/platypush/plugins/ntfy/__init__.py index f286ee4d3..df9735bc3 100644 --- a/platypush/plugins/ntfy/__init__.py +++ b/platypush/plugins/ntfy/__init__.py @@ -226,6 +226,7 @@ class NtfyPlugin(RunnablePlugin): """ method = requests.post + click_url = url url = server_url or self._server_url args = {} if username and password: @@ -240,7 +241,7 @@ class NtfyPlugin(RunnablePlugin): args['headers'] = { 'Filename': filename, **({'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-Priority': priority} if priority else {}), **({'X-Tags': ','.join(tags)} if tags else {}), @@ -255,7 +256,7 @@ class NtfyPlugin(RunnablePlugin): 'topic': topic, 'message': message, **({'title': title} if title else {}), - **({'click': url} if url else {}), + **({'click': click_url} if click_url else {}), **({'email': email} if email else {}), **({'priority': priority} if priority else {}), **({'tags': tags} if tags else {}),