Parcourir la source

[beers] Fix missing abv error

Colin Powell il y a 6 mois
Parent
commit
1f0c950b17

+ 2 - 0
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
 
 

+ 25 - 0
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

+ 0 - 0
vrobbler/apps/scrobbles/messagebus.py


+ 0 - 0
vrobbler/apps/scrobbles/services.py