Fix some type errors and wrong api arguments
This commit is contained in:
parent
434c444333
commit
4808b6d40b
2 changed files with 4 additions and 4 deletions
|
@ -41,13 +41,13 @@ class ConflictMessage:
|
||||||
h = hashlib.new('sha1')
|
h = hashlib.new('sha1')
|
||||||
# Include the chosen email an source sub-list
|
# Include the chosen email an source sub-list
|
||||||
h.update(struct.pack('!sd',
|
h.update(struct.pack('!sd',
|
||||||
self._chosen.email,
|
self._chosen.email.encode(),
|
||||||
self._chosen.schleuder))
|
self._chosen.schleuder))
|
||||||
# Include all subscriptions, including the FULL key
|
# Include all subscriptions, including the FULL key
|
||||||
for s in subs:
|
for s in subs:
|
||||||
h.update(struct.pack('!ds',
|
h.update(struct.pack('!ds',
|
||||||
s.schleuder,
|
s.schleuder,
|
||||||
s.key.blob))
|
s.key.blob.encode()))
|
||||||
return h.hexdigest()
|
return h.hexdigest()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -63,10 +63,10 @@ class MultiList:
|
||||||
self._api.subscribe(sub, target_list)
|
self._api.subscribe(sub, target_list)
|
||||||
self._logger.info(f'Subscribed user: {sub}')
|
self._logger.info(f'Subscribed user: {sub}')
|
||||||
for sub in to_update:
|
for sub in to_update:
|
||||||
self._api.update_fingerprint(sub)
|
self._api.update_fingerprint(sub, target_list)
|
||||||
self._logger.info(f'Updated key: {sub}')
|
self._logger.info(f'Updated key: {sub}')
|
||||||
for sub in to_unsubscribe:
|
for sub in to_unsubscribe:
|
||||||
self._api.unsubscribe(sub)
|
self._api.unsubscribe(sub, target_list)
|
||||||
self._logger.info(f'Unsubscribed user: {sub}')
|
self._logger.info(f'Unsubscribed user: {sub}')
|
||||||
for key in to_remove:
|
for key in to_remove:
|
||||||
self._api.delete_key(key, target_list)
|
self._api.delete_key(key, target_list)
|
||||||
|
|
Loading…
Reference in a new issue