Less indentation

merge-requests/30/head
Bob Mottram 2023-09-01 10:32:33 +01:00
parent a1a44e1804
commit 683d7b1701
1 changed files with 7 additions and 6 deletions

View File

@ -2140,7 +2140,8 @@ def update_memorial_flags(base_dir: str, person_cache: {}) -> None:
if nickname not in memorials:
actor_json['memorial'] = False
actor_changed = True
if actor_changed:
if not actor_changed:
continue
save_json(actor_json, actor_filename)
actor = actor_json['id']
remove_person_from_cache(base_dir, actor, person_cache)