Commit 37105a88 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[openpgp] Bugfixes

- dont pass Path instance to sqlite3.connect()
- add keydate to devicelist publish
parent 585e5666
......@@ -36,7 +36,7 @@ TABLE_LAYOUT = '''
class Storage:
def __init__(self, folder_path):
self._con = sqlite3.connect(folder_path / 'contacts.db',
self._con = sqlite3.connect(str(folder_path / 'contacts.db'),
self._con.row_factory = self._namedtuple_factory
......@@ -32,7 +32,6 @@ from openpgp.modules.util import NS_OPENPGP_PUBLIC_KEYS
from openpgp.modules.util import NS_OPENPGP
from openpgp.modules.util import Key
from openpgp.modules.util import Trust
from openpgp.modules.util import VerifyFailed
from openpgp.modules.util import DecryptionFailed
from openpgp.backend.sql import Storage
from openpgp.backend.pygpg import PGPContext
......@@ -412,7 +411,7 @@ class OpenPGP:
return'Own key not published')
if self._fingerprint is not None:
keylist.append(Key(self._fingerprint, None))
keylist.append(Key(self._fingerprint, self._date))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment