[beers] Fix missing abv error
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
25
vrobbler/apps/scrobbles/events.py
Normal file
25
vrobbler/apps/scrobbles/events.py
Normal 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
|
||||
0
vrobbler/apps/scrobbles/messagebus.py
Normal file
0
vrobbler/apps/scrobbles/messagebus.py
Normal file
0
vrobbler/apps/scrobbles/services.py
Normal file
0
vrobbler/apps/scrobbles/services.py
Normal file
Reference in New Issue
Block a user