diff --git a/vrobbler/apps/beers/untappd.py b/vrobbler/apps/beers/untappd.py index adaee75..b46d8c5 100644 --- a/vrobbler/apps/beers/untappd.py +++ b/vrobbler/apps/beers/untappd.py @@ -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 diff --git a/vrobbler/apps/scrobbles/events.py b/vrobbler/apps/scrobbles/events.py new file mode 100644 index 0000000..6cbd20f --- /dev/null +++ b/vrobbler/apps/scrobbles/events.py @@ -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 diff --git a/vrobbler/apps/scrobbles/messagebus.py b/vrobbler/apps/scrobbles/messagebus.py new file mode 100644 index 0000000..e69de29 diff --git a/vrobbler/apps/scrobbles/services.py b/vrobbler/apps/scrobbles/services.py new file mode 100644 index 0000000..e69de29