Skip to content
Snippets Groups Projects
Commit 10250c45 authored by inso's avatar inso
Browse files

Fixed bugs

- UID parsing in selfcert
- Old contacts format in certify
parent 49e91b39
No related branches found
No related tags found
No related merge requests found
...@@ -186,11 +186,11 @@ class Person(object): ...@@ -186,11 +186,11 @@ class Person(object):
for result in data['results']: for result in data['results']:
if result["pubkey"] == self.pubkey: if result["pubkey"] == self.pubkey:
uids = result['uids'] uids = result['uids']
for uid in uids: for uid_data in uids:
if uid["meta"]["timestamp"] > timestamp: if uid_data["meta"]["timestamp"] > timestamp:
timestamp = uid["meta"]["timestamp"] timestamp = uid_data["meta"]["timestamp"]
uid = uid["uid"] uid = uid_data["uid"]
signature = uid["self"] signature = uid_data["self"]
return SelfCertification(PROTOCOL_VERSION, return SelfCertification(PROTOCOL_VERSION,
community.currency, community.currency,
......
...@@ -33,7 +33,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog): ...@@ -33,7 +33,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
def accept(self): def accept(self):
if self.radio_contact.isChecked(): if self.radio_contact.isChecked():
index = self.combo_contact.currentIndex() index = self.combo_contact.currentIndex()
pubkey = self.account.contacts[index].pubkey pubkey = self.account.contacts[index]['pubkey']
else: else:
pubkey = self.edit_pubkey.text() pubkey = self.edit_pubkey.text()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment