Skip to content

Commit

Permalink
FS-4253: Update utils, use language for Welsh translations (#210)
Browse files Browse the repository at this point in the history
* FS-4253: Update utils, use language for Welsh translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tferns and pre-commit-ci[bot] authored Mar 22, 2024
1 parent 7a2a796 commit 3a5f955
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/notification/application/map_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@dataclass
class Application(_NotificationContents):
questions: bytes
questions: BytesIO
fund_id: str
round_name: str
reference: str
Expand Down Expand Up @@ -107,7 +107,8 @@ def bytes_object_for_questions_answers(
"""
q_and_a = cls.get_questions_and_answers(notification)
fund_name = cls.get_fund_name(notification)
stringIO_data = generate_text_of_application(q_and_a, fund_name)
language = notification.content["application"]["language"]
stringIO_data = generate_text_of_application(q_and_a, fund_name, language)
convert_to_bytes = bytes(stringIO_data, "utf-8")
bytes_object = BytesIO(convert_to_bytes)
return bytes_object
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ flipper-client==1.3.2
# via
# -r requirements.txt
# funding-service-design-utils
funding-service-design-utils==2.0.43
funding-service-design-utils==2.0.44
# via -r requirements.txt
greenlet==3.0.1
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-----------------------------------
# FSD Utils
#-----------------------------------
funding-service-design-utils>=2.0.43,<2.1.0
funding-service-design-utils>=2.0.44,<2.1.0
requests

#-----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ flask-talisman==1.1.0
# via -r requirements.in
flipper-client==1.3.2
# via funding-service-design-utils
funding-service-design-utils==2.0.43
funding-service-design-utils==2.0.44
# via -r requirements.in
greenlet==3.0.1
# via sqlalchemy
Expand Down

0 comments on commit 3a5f955

Please sign in to comment.