fix makefile and broken sentbox

This commit is contained in:
Kevin Froman 2019-03-05 11:11:49 -06:00
parent d4eb3f43ef
commit 930d825ebc
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
ONIONR_HOME ?= data
all:;: '$(ONIONR_HOME)'
PREFIX = /usr/local
.DEFAULT_GOAL := setup

View File

@ -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)