[scrobbles] Add a status page

This commit is contained in:
2024-04-13 15:25:13 -04:00
parent f5df6c97a9
commit a72e0b0fb9
7 changed files with 155 additions and 5 deletions

View File

@ -85,6 +85,12 @@ class GeoLocation(ScrobblableMixin):
)
return location
@property
def subtitle(self) -> str:
if self.title:
return f"{self.lat} x {self.lon}"
return ""
def loc_diff(self, old_lat_lon: tuple) -> tuple:
return (
abs(Decimal(old_lat_lon[0]) - Decimal(self.lat)),