Skip to content

Commit

Permalink
add site_id (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Sep 12, 2023
1 parent 212699a commit 2e194b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ovos_bus_client/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def __init__(self, session_id: str = None, expiration_seconds: int = None,
max_time: int = 5, max_messages: int = 5,
utterance_states: dict = None, lang: str = None,
context: IntentContextManager = None,
valid_langs: List[str] = None):
valid_langs: List[str] = None,
site_id: str = "unknown"):
"""
Construct a session identifier
@param session_id: string UUID for the session
Expand All @@ -288,6 +289,7 @@ def __init__(self, session_id: str = None, expiration_seconds: int = None,
"""
self.session_id = session_id or str(uuid4())
self.lang = lang or get_default_lang()
self.site_id = site_id or "unknown" # indoors placement info

self.valid_languages = valid_langs or _get_valid_langs()
self.active_skills = active_skills or [] # [skill_id , timestamp]
Expand Down

0 comments on commit 2e194b9

Please sign in to comment.