code format
This commit is contained in:
parent
68fbc436f2
commit
6911ca407e
@ -16,6 +16,7 @@ class PskReporterDummy(object):
|
|||||||
used in place of the PskReporter when reporting is disabled.
|
used in place of the PskReporter when reporting is disabled.
|
||||||
does nothing.
|
does nothing.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def spot(self, spot):
|
def spot(self, spot):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -97,13 +98,7 @@ class Uploader(object):
|
|||||||
sInfo = self.getSenderInformation(chunk)
|
sInfo = self.getSenderInformation(chunk)
|
||||||
length = 16 + len(rHeader) + len(sHeader) + len(rInfo) + len(sInfo)
|
length = 16 + len(rHeader) + len(sHeader) + len(rInfo) + len(sInfo)
|
||||||
header = self.getHeader(length)
|
header = self.getHeader(length)
|
||||||
packets.append(
|
packets.append(header + rHeader + sHeader + rInfo + sInfo)
|
||||||
header
|
|
||||||
+ rHeader
|
|
||||||
+ sHeader
|
|
||||||
+ rInfo
|
|
||||||
+ sInfo
|
|
||||||
)
|
|
||||||
|
|
||||||
return packets
|
return packets
|
||||||
|
|
||||||
|
@ -322,7 +322,9 @@ class WsjtParser(object):
|
|||||||
class Decoder(object):
|
class Decoder(object):
|
||||||
def parse_timestamp(self, instring, dateformat):
|
def parse_timestamp(self, instring, dateformat):
|
||||||
ts = datetime.strptime(instring, dateformat)
|
ts = datetime.strptime(instring, dateformat)
|
||||||
return int(datetime.combine(datetime.utcnow().date(), ts.time()).replace(tzinfo=timezone.utc).timestamp() * 1000)
|
return int(
|
||||||
|
datetime.combine(datetime.utcnow().date(), ts.time()).replace(tzinfo=timezone.utc).timestamp() * 1000
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Jt9Decoder(Decoder):
|
class Jt9Decoder(Decoder):
|
||||||
|
Loading…
Reference in New Issue
Block a user