more error fixes

This commit is contained in:
Cort Buffington 2016-11-25 08:39:59 -06:00
parent 174ad1b743
commit 2493d45c6d
2 changed files with 4 additions and 2 deletions

View File

@ -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)
return get_info(int_id(_tgid), talkgroup_ids)
'''

View File

@ -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)