From cb2e803ae81f7fce9ab0f4c539168a811a0549bc Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 18 Jun 2019 11:55:14 -0500 Subject: [PATCH] use contact module for friend command list names instead of getName() --- onionr/onionrcommands/pubkeymanager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/onionr/onionrcommands/pubkeymanager.py b/onionr/onionrcommands/pubkeymanager.py index a294396b..e12fc670 100755 --- a/onionr/onionrcommands/pubkeymanager.py +++ b/onionr/onionrcommands/pubkeymanager.py @@ -20,7 +20,7 @@ import sys, getpass import logger, onionrexceptions -from onionrusers import onionrusers +from onionrusers import onionrusers, contactmanager def add_ID(o_inst): try: sys.argv[2] @@ -75,8 +75,8 @@ def friend_command(o_inst): action = action.lower() if action == 'list': # List out peers marked as our friend - for friend in onionrusers.OnionrUser.list_friends(o_inst.onionrCore): - logger.info(friend.publicKey + ' - ' + friend.getName()) + for friend in contactmanager.ContactManager.list_friends(o_inst.onionrCore): + logger.info(friend.publicKey + ' - ' + friend.get_info('name')) elif action in ('add', 'remove'): try: friend = sys.argv[3]