Linting and cleanup

This commit is contained in:
zandercymatics 2024-08-12 08:45:58 -06:00
parent 44b8163422
commit 0feb0a7ef8
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 3 additions and 3 deletions

View file

@ -830,7 +830,7 @@ function initializeWidgetOnList(list, parentId) {
if (data.error) {
// Clear the field if the SO doesn't exist
$seniorOfficial.val("").trigger("change");
console.error('Error in AJAX call: ' + data.error);
console.error("Error in AJAX call: " + data.error);
return;
}
@ -853,7 +853,7 @@ function initializeWidgetOnList(list, parentId) {
$seniorOfficial.append(userOption).trigger("change");
}
})
.catch(error => console.error('Error fetching senior official:', error));
.catch(error => console.error("Error fetching senior official: ", error));
}
function handleStateTerritoryChange(stateTerritory, urbanizationField) {

View file

@ -26,7 +26,7 @@ def get_senior_official_from_federal_agency_json(request):
# Convert the agency object to a dictionary
so_dict = model_to_dict(senior_official)
# The phone number field isn't json serializable, so we
# The phone number field isn't json serializable, so we
# convert this to a string first if it exists.
if "phone" in so_dict and so_dict.get("phone"):
so_dict["phone"] = str(so_dict["phone"])