ruff format && ruff check --fix

This commit is contained in:
Ian Renton
2026-08-16 14:11:45 +01:00
parent 8e48287edf
commit 7220a0f58d
13 changed files with 106 additions and 85 deletions
+1 -3
View File
@@ -35,9 +35,7 @@ class DXCluster(SpotProvider):
self._hostname = provider_config["host"]
self._port = provider_config["port"]
self._login_prompt = provider_config.get("login_prompt", "login:")
self._login_callsign = (
provider_config.get("login_callsign", SERVER_OWNER_CALLSIGN)
)
self._login_callsign = provider_config.get("login_callsign", SERVER_OWNER_CALLSIGN)
self._allow_rbn_spots = provider_config.get("allow_rbn_spots", False)
self._spot_line_pattern = (
self._LINE_PATTERN_ALLOW_RBN if self._allow_rbn_spots else self._LINE_PATTERN_EXCLUDE_RBN
+1 -3
View File
@@ -98,9 +98,7 @@ class UKPacketNet(HTTPSpotProvider):
# data, and we can use that to look these up.
for spot in new_spots:
if spot.dx_call in nodes:
spot.dx_grid = (
nodes[spot.dx_call]["location"].get("locator", None)
)
spot.dx_grid = nodes[spot.dx_call]["location"].get("locator", None)
spot.dx_latitude = nodes[spot.dx_call]["location"]["coords"]["lat"]
spot.dx_longitude = nodes[spot.dx_call]["location"]["coords"]["lon"]