code format
This commit is contained in:
parent
68fbc436f2
commit
6911ca407e
@ -21,4 +21,4 @@ class Locator(object):
|
||||
res += chr(97 + int(lon * 12))
|
||||
res += chr(97 + int(lat * 24))
|
||||
|
||||
return res
|
||||
return res
|
||||
|
@ -16,6 +16,7 @@ class PskReporterDummy(object):
|
||||
used in place of the PskReporter when reporting is disabled.
|
||||
does nothing.
|
||||
"""
|
||||
|
||||
def spot(self, spot):
|
||||
pass
|
||||
|
||||
@ -97,13 +98,7 @@ class Uploader(object):
|
||||
sInfo = self.getSenderInformation(chunk)
|
||||
length = 16 + len(rHeader) + len(sHeader) + len(rInfo) + len(sInfo)
|
||||
header = self.getHeader(length)
|
||||
packets.append(
|
||||
header
|
||||
+ rHeader
|
||||
+ sHeader
|
||||
+ rInfo
|
||||
+ sInfo
|
||||
)
|
||||
packets.append(header + rHeader + sHeader + rInfo + sInfo)
|
||||
|
||||
return packets
|
||||
|
||||
|
@ -322,7 +322,9 @@ class WsjtParser(object):
|
||||
class Decoder(object):
|
||||
def parse_timestamp(self, 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):
|
||||
|
Loading…
Reference in New Issue
Block a user