Invert logic

merge-requests/30/head
Bob Mottram 2023-08-22 22:02:02 +01:00
parent 581f54831d
commit 15f359f8dc
1 changed files with 1 additions and 1 deletions

View File

@ -2153,7 +2153,7 @@ def add_shares_to_actor(base_dir: str,
new_attachment = []
for attach_item in actor_json['attachment']:
is_proposal = False
if 'rel' not in attach_item:
if 'rel' in attach_item:
if isinstance(attach_item['rel'], list):
if len(attach_item['rel']) == 2:
if attach_item['rel'][0] == 'payment' and \