Add get_api function
This commit is contained in:
parent
d5c3283ce8
commit
e32209bf2b
2 changed files with 11 additions and 5 deletions
2
hrafn.py
2
hrafn.py
|
@ -70,7 +70,7 @@ class Hrafn():
|
|||
for item in config.sections():
|
||||
if (re.match(r'account', item)):
|
||||
username = config.get(item, 'username')
|
||||
self.accounts[username] = apithreads.CustomApi(username=username, password=config.get(item, 'password'))
|
||||
self.accounts[username] = apithreads.get_api(username=username, password=config.get(item, 'password'))
|
||||
self.accounts[username].sig_proxy.connect('lists-ready', self.on_lists_ready)
|
||||
|
||||
if not self.db.has_key('active_user'):
|
||||
|
|
Reference in a new issue