Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nclsbayona authored Sep 14, 2023
1 parent 66577c5 commit 7b65006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def getAffirmation() -> Dict[str, str]:
)
affirmation = (response.json()).get("contents").get("translated")
affirmation = f"Someone once said: {affirmation}"
text = f"{text} in {translate_to} language"
text = f"-- {text} in {translate_to} language"

new_dictionary: Dict[str, str] = dict()
new_dictionary["text_affirmation1"] = affirmation
Expand Down Expand Up @@ -180,7 +180,7 @@ async def getAffirmation() -> Dict[str, str]:
return new_dictionary

except Exception or KeyboardInterrupt:
return {"text_affirmation": "An error ocurred please try again later"}
return {"text_affirmation1": "An error ocurred", "text_affirmation2":"Please try again later"}


async def getWakaStats(waka_key: str = None, format: str = "string") -> Dict[str, str]:
Expand Down

0 comments on commit 7b65006

Please sign in to comment.