Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version adds two lines to the message body that mess up JSON (need python help) #1157

Open
jds11111 opened this issue Mar 10, 2024 · 2 comments

Comments

@jds11111
Copy link

#342 (reply in thread)

@jds11111
Copy link
Author

The issue seems to be in notifications.py, lines 163 and 213 add lines that will not fit in JSON, so problematic for MQTT notification with apprise. If they were replaced with something like

.replace("$reason", " (only seen " + str(int(numberDetections)) + " times in last 7d)")

But I don't really know python well enough to know if this is correct.

@jds11111 jds11111 changed the title Latest version adds two lines to the message body that mess up JSON Latest version adds two lines to the message body that mess up JSON (need python help) Mar 12, 2024
@jds11111
Copy link
Author

Maybe I should just put in a PR that comments these out of the message body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant