Added configuration option for ignoring messages with invalid stamps

This commit is contained in:
Mark Qvist 2024-09-11 02:05:55 +02:00
parent c2881e70e9
commit 042726d27f
4 changed files with 45 additions and 4 deletions

View file

@ -152,8 +152,12 @@ class Messages():
valid_str = " is valid"
sv = msg["extras"]["stamp_value"]
if sv == None:
sv_str = "was not included in the message"
valid_str = ""
if "stamp_raw" in msg["extras"]:
sv_str = ""
valid_str = "is not valid"
else:
sv_str = ""
valid_str = "was not included in the message"
elif sv > 255:
sv_str = "generated from ticket"
else: