Less indentation

main
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,10 +2140,11 @@ 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:
save_json(actor_json, actor_filename)
actor = actor_json['id']
remove_person_from_cache(base_dir, actor, person_cache)
store_person_in_cache(base_dir, actor, actor_json,
person_cache, True)
if not actor_changed:
continue
save_json(actor_json, actor_filename)
actor = actor_json['id']
remove_person_from_cache(base_dir, actor, person_cache)
store_person_in_cache(base_dir, actor, actor_json,
person_cache, True)
break