Added docstrings
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
"""API endpoints for the form-data and the alpinebits server."""
|
||||
|
||||
import asyncio
|
||||
import gzip
|
||||
import json
|
||||
@@ -81,6 +83,8 @@ class LanguageDetectionResponse(BaseModel):
|
||||
|
||||
# --- Enhanced event dispatcher with hotel-specific routing ---
|
||||
class EventDispatcher:
|
||||
"""Simple event dispatcher for AlpineBits push requests."""
|
||||
|
||||
def __init__(self):
|
||||
self.listeners = defaultdict(list)
|
||||
self.hotel_listeners = defaultdict(list) # hotel_code -> list of listeners
|
||||
|
||||
Reference in New Issue
Block a user