Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab7ebb7f17
|
|||
9b96af09a3 |
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.11-slim
|
FROM python:3.13-slim
|
||||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -52,6 +52,11 @@ def main():
|
|||||||
if sound:
|
if sound:
|
||||||
payload['sound'] = sound
|
payload['sound'] = sound
|
||||||
|
|
||||||
|
_printable_payload = payload.copy()
|
||||||
|
_printable_payload['token'] = '***'
|
||||||
|
_printable_payload['user'] = '***'
|
||||||
|
print(_printable_payload)
|
||||||
|
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
url='https://api.pushover.net/1/messages.json',
|
url='https://api.pushover.net/1/messages.json',
|
||||||
headers={'Content-Type': 'application/x-www-form-urlencoded'},
|
headers={'Content-Type': 'application/x-www-form-urlencoded'},
|
||||||
|
Reference in New Issue
Block a user