e #2
This commit is contained in:
parent
d0c008fc20
commit
00000d9f7e
1 changed files with 5 additions and 3 deletions
|
|
@ -169,9 +169,11 @@ async def get_events(
|
|||
if not sources:
|
||||
continue
|
||||
|
||||
source = sources[1] if len(sources) > 1 else sources[0]
|
||||
source_type = source.get("source")
|
||||
stream_id = source.get("id")
|
||||
skip_sources = {"alpha", "delta", "golf"}
|
||||
srce = [d for d in sources if d.get("source") not in skip_sources][0]
|
||||
|
||||
source_type = srce.get("source")
|
||||
stream_id = srce.get("id")
|
||||
|
||||
if not (source_type and stream_id):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue