1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-18 06:11:49 -05:00

pep8 fixes

This commit is contained in:
Hemna 2023-09-28 12:34:01 -04:00
parent 4f87d5da12
commit 99a0f877f4
3 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ def _init_timestamp():
"""Build a unix style timestamp integer"""
return int(round(time.time()))
def _init_msgNo(): # noqa: N802
"""For some reason __post__init doesn't get called.

View File

@ -60,7 +60,7 @@ class PacketList(MutableMapping):
return self.get(key)
def __getitem__(self, key):
#self.d.move_to_end(key)
# self.d.move_to_end(key)
return self.d[key]
def __setitem__(self, key, value):

View File

@ -85,7 +85,7 @@ class APRSDPluginRXThread(APRSDRXThread):
pkt_list.rx(packet)
self.packet_queue.put(packet)
elif packet.timestamp - found.timestamp < 60:
LOG.warning(f"Packet {packet.from_call}:{packet.msgNo} already tracked, dropping.")
LOG.warning(f"Packet {packet.from_call}:{packet.msgNo} already tracked, dropping.")
else:
LOG.warning(f"Packet {packet.from_call}:{packet.msgNo} already tracked but older than 60 seconds. processing.")
pkt_list.rx(packet)