fix makefile and broken sentbox
This commit is contained in:
parent
d4eb3f43ef
commit
930d825ebc
3
Makefile
3
Makefile
@ -1,3 +1,6 @@
|
||||
ONIONR_HOME ?= data
|
||||
all:;: '$(ONIONR_HOME)'
|
||||
|
||||
PREFIX = /usr/local
|
||||
|
||||
.DEFAULT_GOAL := setup
|
||||
|
@ -51,11 +51,11 @@ def list_sentbox():
|
||||
deleted = kv.get('deleted_mail')
|
||||
if deleted is None:
|
||||
deleted = []
|
||||
for x in range(len(sentbox_list_copy)):
|
||||
for x in range(len(sentbox_list_copy) - 1):
|
||||
if sentbox_list_copy[x]['hash'] in deleted:
|
||||
x -= 1
|
||||
sentbox_list.pop(x)
|
||||
else:
|
||||
sentbox_list[x]['name'] = contactmanager.ContactManager(c, sentbox_list[x]['peer'], saveUser=False).get_info('name')
|
||||
sentbox_list[x]['name'] = contactmanager.ContactManager(c, sentbox_list_copy[x]['peer'], saveUser=False).get_info('name')
|
||||
|
||||
return json.dumps(sentbox_list)
|
Loading…
Reference in New Issue
Block a user