From 2493d45c6db95397a7c05f1a85261916959d7316 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Fri, 25 Nov 2016 08:39:59 -0600 Subject: [PATCH] more error fixes --- dmr_utils.py | 4 +++- hb_router.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dmr_utils.py b/dmr_utils.py index 227d083..ee7eb2b 100755 --- a/dmr_utils.py +++ b/dmr_utils.py @@ -110,6 +110,7 @@ def get_info(_id, _dict): # These are the functions you should use to look up IDs in the dictionaries # But they don't work here because they reference dictionraries not avaialbe # in this scope +''' def sub_alias(_sub_id): return get_info(int_id(_sub_id), subscriber_ids) @@ -117,4 +118,5 @@ def peer_alias(_peer_id): return get_info(int_id(_peer_id), peer_ids) def tg_alias(_tgid): - return get_info(int_id(_tgid), talkgroup_ids) \ No newline at end of file + return get_info(int_id(_tgid), talkgroup_ids) +''' \ No newline at end of file diff --git a/hb_router.py b/hb_router.py index 2b35cc4..5187959 100755 --- a/hb_router.py +++ b/hb_router.py @@ -468,7 +468,7 @@ if __name__ == '__main__': if talkgroup_ids: logger.info('ID ALIAS MAPPER: talkgroup_ids dictionary is available') - # These are the functions you should use to look up IDs in the dictionaries + # These are the functions to look up IDs in the dictionaries def sub_alias(_sub_id): return get_info(int_id(_sub_id), subscriber_ids)