query_str='SELECT created_at, event_type, event_msg FROM eventlog '+ \
'WHERE active_ind = 1 AND linked_type = {} AND linked_id = x\'{}\''.format(TableTypes.BID,bid_id.hex())
@ -5482,9 +5497,9 @@ class BasicSwap(BaseApp):
try:
session=scoped_session(self.session_factory)
rv=[]
q=session.execute('SELECT addr FROM smsgaddresses WHERE use_type = {} AND active_ind = 1 ORDER BY addr_id DESC'.format(use_type))
q=session.execute('SELECT sa.addr, ki.label FROM smsgaddresses AS sa LEFT JOIN knownidentities AS ki ON sa.addr = ki.address WHERE sa.use_type = {} AND sa.active_ind = 1 ORDER BY sa.addr_id DESC'.format(use_type))