[beers] Fix missing abv error

This commit is contained in:
2024-11-01 22:39:46 -04:00
parent f2998205e1
commit 1f0c950b17
4 changed files with 27 additions and 0 deletions

View File

@ -66,6 +66,8 @@ def get_abv_from_soup(soup) -> Optional[float]:
pass
except ValueError:
pass
if "N/A" in abv:
abv = None
return abv

View File

@ -0,0 +1,25 @@
from dataclasses import dataclass
class Event:
pass
@dataclass
class Start(Event):
scrobble_id: str
@dataclass
class Pause(Event):
scrobble_id: str
@dataclass
class Cancel(Event):
scrobble_id: str
@dataclass
class Stop(Event):
scrobble_id: str

View File

View File