From 099231dc32f6c2f8ca63f4bfe2a91f77b15bebda Mon Sep 17 00:00:00 2001 From: Waldek Date: Mon, 17 Jun 2019 07:06:06 +0200 Subject: [PATCH] Update web_tables.py --- web_tables.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/web_tables.py b/web_tables.py index 101df73..9f62fff 100644 --- a/web_tables.py +++ b/web_tables.py @@ -421,20 +421,10 @@ def rts_update(p): CTABLE['MASTERS'][system]['PEERS'][peer][timeSlot]['SRC'] = '' CTABLE['MASTERS'][system]['PEERS'][peer][timeSlot]['DEST'] = '' - if system in CTABLE['OPENBRIDGES']: - if not CTABLE['OPENBRIDGES'][system]['STREAMS']: - CTABLE['OPENBRIDGES'][system]['BGCOLOR'] = WHITE - CTABLE['OPENBRIDGES'][system]['COLOR'] = BLACK - else: - CTABLE['OPENBRIDGES'][system]['BGCOLOR'] = YELLOW - CTABLE['OPENBRIDGES'][system]['COLOR'] = BLACK + if system in CTABLE['OPENBRIDGES']: if action == 'START': CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId] = (trx, alias_call(sourceSub, subscriber_ids),'TG{}'.format(destination)) - CTABLE['OPENBRIDGES'][system]['BGCOLOR'] = YELLOW - CTABLE['OPENBRIDGES'][system]['COLOR'] = BLACK if action == 'END': - CTABLE['OPENBRIDGES'][system]['BGCOLOR'] = WHITE - CTABLE['OPENBRIDGES'][system]['COLOR'] = BLACK if streamId in CTABLE['OPENBRIDGES'][system]['STREAMS']: del CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId]