Update load_senior_official_table.py

This commit is contained in:
zandercymatics 2024-07-30 08:54:27 -06:00
parent f72caa3041
commit 31d408da85
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -103,7 +103,7 @@ class Command(BaseCommand):
new_so = SeniorOfficial(**so_kwargs)
# Store a variable for the console logger
if any([old_first_name, new_so.last_name]):
if all([old_first_name, new_so.last_name]):
record_display = new_so
else:
record_display = so_kwargs