From 17e14392594473d9a078a37546ca150e9e5487d1 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Sat, 9 Mar 2019 22:38:48 -0600 Subject: [PATCH 1/3] fixed format so it works with simple dicts too --- talkgroup_ids.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/talkgroup_ids.json b/talkgroup_ids.json index c461d84..a588667 100644 --- a/talkgroup_ids.json +++ b/talkgroup_ids.json @@ -1,16 +1,19 @@ { "results": [ { + "tgid": 3120, + "name": "Kansas Statewide", "id": "3120", - "callsign": "Kansas Statewide" }, { + "tgid": 31201, + "name": "BYRG", "id": "31201", - "callsign": "BYRG" }, { + "tgid": 310, + "name": "Kerchunk 310", "id": "310", - "callsign": "Kerchunk 310" } ] } \ No newline at end of file From 69f965ebf73027eee17b7594d11b7c86a93ab56c Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Sat, 9 Mar 2019 22:39:32 -0600 Subject: [PATCH 2/3] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e466427..64f1fe0 100755 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ config.py *.csv .DS_Store *.log +*.json From cbb90b6b6ffeae0b75a1eb164d280facb5a42686 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Wed, 20 Mar 2019 09:08:12 -0500 Subject: [PATCH 3/3] Disable timeout for 0 value --- web_tables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_tables.py b/web_tables.py index 4338f80..534654a 100755 --- a/web_tables.py +++ b/web_tables.py @@ -660,8 +660,9 @@ if __name__ == '__main__': update_stats.start(FREQUENCY) # Start a timout loop - timeout = task.LoopingCall(timeout_clients) - timeout.start(10) + if CLIENT_TIMEOUT > 0: + timeout = task.LoopingCall(timeout_clients) + timeout.start(10) # Connect to HBlink reactor.connectTCP(HBLINK_IP, HBLINK_PORT, reportClientFactory())