Skip to content

Commit

Permalink
Fixed some pep8 failures
Browse files Browse the repository at this point in the history
  • Loading branch information
hemna committed Dec 6, 2024
1 parent 3c058f3 commit 63bcd41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aprsd/packets/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def key(self) -> str:
if self.raw_timestamp:
return f"{self.from_call}:{self.raw_timestamp}"
else:
return f"{self.from_call}:{self.human_info.replace(' ','')}"
return f"{self.from_call}:{self.human_info.replace(' ', '')}"

@property
def human_info(self) -> str:
Expand Down Expand Up @@ -450,7 +450,7 @@ def key(self) -> str:
if self.raw_timestamp:
return f"{self.from_call}:{self.raw_timestamp}"
else:
return f"{self.from_call}:{self.human_info.replace(' ','')}"
return f"{self.from_call}:{self.human_info.replace(' ', '')}"

@property
def human_info(self) -> str:
Expand Down Expand Up @@ -629,11 +629,11 @@ def _build_payload(self):
# Temperature in degrees F
f"t{self.temperature:03.0f}",
# Rainfall (in hundredths of an inch) in the last hour
f"r{self.rain_1h*100:03.0f}",
f"r{self.rain_1h * 100:03.0f}",
# Rainfall (in hundredths of an inch) in last 24 hours
f"p{self.rain_24h*100:03.0f}",
f"p{self.rain_24h * 100:03.0f}",
# Rainfall (in hundredths of an inch) since midnigt
f"P{self.rain_since_midnight*100:03.0f}",
f"P{self.rain_since_midnight * 100:03.0f}",
# Humidity
f"h{self.humidity:02d}",
# Barometric pressure (in tenths of millibars/tenths of hPascal)
Expand Down

0 comments on commit 63bcd41

Please sign in to comment.