mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-21 17:11:01 -05:00
pep8 fixes
This commit is contained in:
parent
4f87d5da12
commit
99a0f877f4
@ -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.
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user