outposts: fix missing default for OutpostState.for_channel

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-15 17:46:53 +02:00
parent 1745306cc6
commit a30b32fbbf
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ class OutpostState:
def for_channel(outpost: Outpost, channel: str) -> "OutpostState":
"""Get state for a single channel"""
key = f"{outpost.state_cache_prefix}_{channel}"
default_data = {"uid": channel}
default_data = {"uid": channel, "channel_id": channel}
data = cache.get(key, default_data)
if isinstance(data, str):
cache.delete(key)