Skip to content

Commit

Permalink
Merge pull request #580 from communitiesuk/FS-4216-eoi-display-subcri…
Browse files Browse the repository at this point in the history
…teria-fix

FS-4216 update the formating for subcriteria
  • Loading branch information
RamuniN authored Mar 4, 2024
2 parents 3c0c8d3 + 608be7f commit 7136bd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/blueprints/assessments/models/applicants_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from app.blueprints.shared.filters import format_address
from app.blueprints.shared.filters import format_date
from app.blueprints.shared.filters import remove_dashes_underscores_capitalize
from app.blueprints.shared.filters import remove_dashes_underscores_capitalize_keep_uppercase
from bs4 import BeautifulSoup
from flask import current_app
from flask import url_for
Expand Down Expand Up @@ -312,7 +313,7 @@ def _ui_component_from_factory(item: dict, application_id: str):

elif presentation_type in ("text", "list", "free_text"):
if field_type in ("radiosField") and item.get("answer"):
item["answer"] = item["answer"].replace("-", " ").capitalize()
item["answer"] = remove_dashes_underscores_capitalize_keep_uppercase(item["answer"])
if field_type in ("multilineTextField",):
return AboveQuestionAnswerPair.from_dict(item)
elif field_type in ("websiteField",):
Expand Down

0 comments on commit 7136bd7

Please sign in to comment.