fix makefile and broken sentbox
This commit is contained in:
		
							parent
							
								
									d4eb3f43ef
								
							
						
					
					
						commit
						930d825ebc
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -1,3 +1,6 @@ | ||||||
|  | ONIONR_HOME ?= data | ||||||
|  | all:;: '$(ONIONR_HOME)' | ||||||
|  | 
 | ||||||
| PREFIX = /usr/local | PREFIX = /usr/local | ||||||
| 
 | 
 | ||||||
| .DEFAULT_GOAL := setup | .DEFAULT_GOAL := setup | ||||||
|  |  | ||||||
|  | @ -51,11 +51,11 @@ def list_sentbox(): | ||||||
|     deleted = kv.get('deleted_mail') |     deleted = kv.get('deleted_mail') | ||||||
|     if deleted is None: |     if deleted is None: | ||||||
|         deleted = [] |         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: |         if sentbox_list_copy[x]['hash'] in deleted: | ||||||
|             x -= 1 |             x -= 1 | ||||||
|             sentbox_list.pop(x) |             sentbox_list.pop(x) | ||||||
|         else: |         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) |     return json.dumps(sentbox_list) | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue