Add script to update public contacts

This commit is contained in:
zandercymatics 2025-03-12 14:50:14 -06:00
parent b0d3968077
commit 3bf4807d8c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 51 additions and 13 deletions

View file

@ -119,10 +119,11 @@ class PopulateScriptTemplate(ABC):
readable_class_name = self.get_class_name(object_class)
# for use in the execution prompt.
proposed_changes = f"""==Proposed Changes==
Number of {readable_class_name} objects to change: {len(records)}
These fields will be updated on each record: {fields_to_update}
"""
proposed_changes = (
"==Proposed Changes==\n"
f"Number of {readable_class_name} objects to change: {len(records)}\n"
f"These fields will be updated on each record: {fields_to_update}"
)
if verbose:
proposed_changes = f"""{proposed_changes}