diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c0ffc25..3ce1809 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,7 +17,7 @@ on: workflow_dispatch: schedule: - - cron: '15 3 * * 0' + - cron: '0 0 * * *' jobs: analyze: diff --git a/directory_file b/directory_file index 641e72f..9b455c9 100644 --- a/directory_file +++ b/directory_file @@ -5,40 +5,45 @@

I'm really grateful that you came here 😎

-Logo +Logo

-
{{ text_affirmation }}
+{{ text_affirmation1 }}

-Affirmation image -

+ + {{ text_affirmation2 }} + +

----
Maybe a drink? 🍹 - - - - +
+

{{ drink_name }}

Drink image

- -#### Name: **{{ drink_name }}** - -#### Alcoholic category: **{{ drink_alcoholic_category }}** - -#### Category: **{{ drink_category }}** +
{{ drink_alcoholic_category }} - {{ drink_category }}
+ +
Neccesary ingredients
+ + + + +
{{{ table_drink }}} +
-#### Preparation instructions: {{ drink_instructions }} +

+{{ drink_instructions }} +

---- @@ -46,92 +51,67 @@
Want to know more about my profile? πŸͺ‚ - -##### πŸ‘€ Visitor count - - -

- - - -

- - -##### Followers - - +
+
πŸ‘€ Visitor count

- +

- - -##### Last profile commit - -

+ - -

- -##### Profile trophies πŸ† +

- ----
Want to check out my stats? 🐣 - - -#### General GitHub Stats πŸŒ€ - -##### πŸ˜ƒ General Overview +
+

General GitHub Stats πŸŒ€

- - -

- -##### Life-Time Stats Overview πŸ˜ƒ - -

+ + - + +

-
-#### πŸ€– Programming Languages Stats +
-##### Most Used Languages Stats πŸ’Ύ +

πŸ€– Programming Languages Stats

+


-#### ⌚General Weekly-Stats - -##### Overview ✨ - +

⌚General Weekly-Stats

+ + + + + +
{{{ languages }}} - -
- +
{{{ coded_on_os }}} +
---- diff --git a/main.py b/main.py index 168d62c..b8effdf 100644 --- a/main.py +++ b/main.py @@ -68,12 +68,10 @@ async def getAffirmation() -> Dict[str, str]: "minion", "sindarin", "oldenglish", - "ferblatin", "dothraki", "valyrian", "vulcan", "klingon", - "pig-latin", "yoda", "sith", "cheunh", @@ -107,11 +105,14 @@ async def getAffirmation() -> Dict[str, str]: f"https://api.funtranslations.com/translate/{translate_to}.json?text={affirmation}" ) affirmation = (response.json()).get("contents").get("translated") - affirmation = f"The text '{text}' was translated to {translate_to} language, and the result is: '{affirmation}'" + affirmation = f'Someone once said: "{affirmation}"' + text = f'-- "{text}" in {translate_to} language --' new_dictionary: Dict[str, str] = dict() - new_dictionary["text_affirmation"] = affirmation + new_dictionary["text_affirmation1"] = affirmation + new_dictionary["text_affirmation2"] = text + """ if translate_to == "yoda": new_dictionary[ "affirmation_image" @@ -174,11 +175,15 @@ async def getAffirmation() -> Dict[str, str]: new_dictionary[ "affirmation_image" ] = "https://static.memrise.com/img/400sqf/from/uploads/course_photos/6265139000150814054627.jpeg" + """ 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]: