Compare commits

...

2 Commits

Author SHA1 Message Date
Hemna b3889896b9 Get rid of some useless warning logs 2024-04-10 13:59:32 -04:00
Hemna 8f6f8007f4 Added human_info property to MessagePackets
This patch adds the human_info property to the MessagePacket
object to just return the filtered message_text
2024-04-10 13:58:44 -04:00
3 changed files with 5 additions and 2 deletions

View File

@ -257,7 +257,6 @@ class APRSISClient(Client):
backoff += 1
continue
self._client = aprs_client
LOG.warning(f"APRS_CLIENT {aprs_client}")
return aprs_client
def consumer(self, callback, blocking=False, immortal=False, raw=False):

View File

@ -414,7 +414,6 @@ def location(callsign):
@flask_app.route("/")
def index():
stats = _stats()
LOG.error(stats)
# For development
html_template = "index.html"

View File

@ -246,6 +246,11 @@ class MessagePacket(Packet):
_type: str = field(default="MessagePacket", hash=False)
message_text: Optional[str] = field(default=None)
@property
def human_info(self) -> str:
self.prepare()
return self._filter_for_send(self.message_text).rstrip("\n")
def _build_payload(self):
self.payload = ":{}:{}{{{}".format(
self.to_call.ljust(9),