Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Platypush
platypush
Commits
d3f48653
Verified
Commit
d3f48653
authored
Jun 02, 2022
by
Fabio Manganiello
Browse files
Fixed variable name conflict
parent
f0804783
Pipeline
#246
passed with stages
in 5 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
platypush/plugins/ntfy/__init__.py
View file @
d3f48653
...
...
@@ -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
{}),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment