work on pm and fixed broken pex when none
This commit is contained in:
parent
8d261b03dc
commit
87a9ecf426
@ -156,8 +156,6 @@ class API:
|
|||||||
resp = Response(response)
|
resp = Response(response)
|
||||||
elif action == 'kex':
|
elif action == 'kex':
|
||||||
peers = self._core.listPeers()
|
peers = self._core.listPeers()
|
||||||
response = ''
|
|
||||||
if type(peers) != None:
|
|
||||||
response = ','.join(self._core.listPeers())
|
response = ','.join(self._core.listPeers())
|
||||||
resp = Response(response)
|
resp = Response(response)
|
||||||
else:
|
else:
|
||||||
|
@ -360,7 +360,7 @@ class Core:
|
|||||||
payload = 'SELECT * FROM peers;'
|
payload = 'SELECT * FROM peers;'
|
||||||
peerList = []
|
peerList = []
|
||||||
for i in c.execute(payload):
|
for i in c.execute(payload):
|
||||||
if type(i[2] != None):
|
if type(i[2]) != None:
|
||||||
peerList.append(i[2])
|
peerList.append(i[2])
|
||||||
peerList.append(self._crypto.pubKey)
|
peerList.append(self._crypto.pubKey)
|
||||||
conn.close()
|
conn.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user