From c00b5e9ea78f706c8b43ef3088682345b5fc55e1 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Wed, 13 Sep 2023 22:17:51 -0500 Subject: [PATCH 01/20] Update directory_file --- directory_file | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/directory_file b/directory_file index 641e72f..f2d148f 100644 --- a/directory_file +++ b/directory_file @@ -8,12 +8,8 @@ Logo

-
{{ text_affirmation }}
- -

-Affirmation image -

- +

{{ text_affirmation1 }}
+{{ text_affirmation2 }} ----
From 303a2256440968beac53e66ff283f673728e5dbb Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Wed, 13 Sep 2023 22:22:21 -0500 Subject: [PATCH 02/20] Update main.py --- main.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 168d62c..201365c 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,6 +175,7 @@ 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 From 66577c51a87989e6d5bb1b8ef1d294587f2bbbd0 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Wed, 13 Sep 2023 22:25:44 -0500 Subject: [PATCH 03/20] Update directory_file --- directory_file | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/directory_file b/directory_file index f2d148f..cd0faff 100644 --- a/directory_file +++ b/directory_file @@ -9,7 +9,9 @@

{{ text_affirmation1 }}
-{{ text_affirmation2 }} +

+ {{ text_affirmation2 }} +

----
From 7b6500656901ee3f431d33b23945b62c790c7453 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Wed, 13 Sep 2023 22:29:45 -0500 Subject: [PATCH 04/20] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 201365c..8b9251e 100644 --- a/main.py +++ b/main.py @@ -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 @@ -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]: From 11c9beba0546989a734659389d866b74ec7fdc7a Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:02:12 -0500 Subject: [PATCH 05/20] Update main.py --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 8b9251e..59440a5 100644 --- a/main.py +++ b/main.py @@ -112,7 +112,7 @@ async def getAffirmation() -> Dict[str, str]: new_dictionary["text_affirmation1"] = affirmation new_dictionary["text_affirmation2"] = text - ''' + """ if translate_to == "yoda": new_dictionary[ "affirmation_image" @@ -175,12 +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_affirmation1": "An error ocurred", "text_affirmation2":"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]: From 67d4d0bf14c5dd641d336318462f535dfed3b5ff Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:10:33 -0500 Subject: [PATCH 06/20] Update directory_file --- directory_file | 55 ++++++++++---------------------------------------- 1 file changed, 11 insertions(+), 44 deletions(-) diff --git a/directory_file b/directory_file index cd0faff..ef96b48 100644 --- a/directory_file +++ b/directory_file @@ -17,9 +17,6 @@
Maybe a drink? 🍹 - - -

Drink image @@ -45,44 +42,22 @@

Want to know more about my profile? πŸͺ‚ -##### πŸ‘€ Visitor count - -

+

πŸ‘€ Visitor count
-

- - -##### Followers - - -

- +

Followers
-

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

- +

Last profile commit
- -

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

+

Profile trophies πŸ†

- ----
@@ -90,40 +65,32 @@ Want to check out my stats? 🐣 -#### General GitHub Stats πŸŒ€ - -##### πŸ˜ƒ General Overview +

General GitHub Stats πŸŒ€

+

πŸ˜ƒ General Overview
-

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

- +

Life-Time Stats Overview πŸ˜ƒ

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

πŸ€– Programming Languages Stats

+

Most Used Languages Stats πŸ’Ύ


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

⌚General Weekly-Stats

{{{ languages }}} From d3bb7982e806744e6205e2647d627172577d8b29 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:18:46 -0500 Subject: [PATCH 07/20] Update directory_file --- directory_file | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/directory_file b/directory_file index ef96b48..ffc5dd1 100644 --- a/directory_file +++ b/directory_file @@ -5,7 +5,7 @@

I'm really grateful that you came here 😎

-Logo +Logo

{{ text_affirmation1 }}
@@ -42,19 +42,16 @@
Want to know more about my profile? πŸͺ‚ -

+

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

-

Followers
- + -
Last profile commit
- + + -
Profile trophies πŸ†
- +

@@ -63,17 +60,15 @@
Want to check out my stats? 🐣 - -

General GitHub Stats πŸŒ€

-

πŸ˜ƒ General Overview
- + + -
Life-Time Stats Overview πŸ˜ƒ
- + +

@@ -83,7 +78,7 @@

-

Most Used Languages Stats πŸ’Ύ
+

From 4f29117842917fa657bc30f32f3d14fe63a67a1f Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:21:14 -0500 Subject: [PATCH 08/20] Update directory_file --- directory_file | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/directory_file b/directory_file index ffc5dd1..c3a8060 100644 --- a/directory_file +++ b/directory_file @@ -16,7 +16,7 @@
Maybe a drink? 🍹 - +

Drink image @@ -34,23 +34,27 @@ #### Preparation instructions: {{ drink_instructions }} - ----

Want to know more about my profile? πŸͺ‚ - +
πŸ‘€ Visitor count
-

+

+

+ +

+

+

@@ -60,6 +64,7 @@
Want to check out my stats? 🐣 +

General GitHub Stats πŸŒ€

From 18199d76f83023af05f0ba3393c8984c495aacc9 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:23:34 -0500 Subject: [PATCH 09/20] Update directory_file --- directory_file | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/directory_file b/directory_file index c3a8060..f641a31 100644 --- a/directory_file +++ b/directory_file @@ -44,13 +44,13 @@

πŸ‘€ Visitor count

- +

- - + +

@@ -70,10 +70,10 @@

- + - +

From 78b0fbbefddcf635aa56460205a07fe027c8d735 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:32:56 -0500 Subject: [PATCH 10/20] Update directory_file --- directory_file | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/directory_file b/directory_file index f641a31..4b5150b 100644 --- a/directory_file +++ b/directory_file @@ -13,21 +13,17 @@ {{ 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 }}**
{{{ table_drink }}} @@ -55,7 +51,7 @@

- +

@@ -70,10 +66,10 @@

- + - +

@@ -91,12 +87,16 @@

⌚General Weekly-Stats

- + + + + + +
{{{ languages }}} - -
- +
{{{ coded_on_os }}} +
---- From 1a2559de405b81377cb891cc5fc0c33accde9d36 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:36:06 -0500 Subject: [PATCH 11/20] Update directory_file --- directory_file | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/directory_file b/directory_file index 4b5150b..a5a6d6e 100644 --- a/directory_file +++ b/directory_file @@ -16,19 +16,21 @@
Maybe a drink? 🍹
-

**{{ drink_name }}**

+

{{ drink_name }}

Drink image

-
**{{ drink_alcoholic_category }}** - **{{ drink_category }}**
+
{{ drink_alcoholic_category }} - {{ drink_category }}
{{{ table_drink }}} -#### Preparation instructions: {{ drink_instructions }} +

+{{ drink_instructions }} +

---- @@ -66,10 +68,10 @@

- + - +

From ad2b204059ba09af04120e83bfc13fa913494b39 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:39:17 -0500 Subject: [PATCH 12/20] Update directory_file --- directory_file | 2 ++ 1 file changed, 2 insertions(+) diff --git a/directory_file b/directory_file index a5a6d6e..31e7993 100644 --- a/directory_file +++ b/directory_file @@ -12,7 +12,9 @@

{{ text_affirmation2 }}

+ ---- +
Maybe a drink? 🍹
From beef3d39abd69307fcceaf864affc4af70202fec Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:40:20 -0500 Subject: [PATCH 13/20] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 59440a5..47c0b14 100644 --- a/main.py +++ b/main.py @@ -105,8 +105,8 @@ 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"Someone once said: {affirmation}" - text = f"-- {text} in {translate_to} language" + affirmation = f"Someone once said: \"{affirmation}\"" + text = f"-- \"{text}\" in {translate_to} language --" new_dictionary: Dict[str, str] = dict() new_dictionary["text_affirmation1"] = affirmation From 5f18b109bc8dcef0df7359bf6c665125a2f7ee92 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:41:29 -0500 Subject: [PATCH 14/20] Update directory_file --- directory_file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/directory_file b/directory_file index 31e7993..61ba162 100644 --- a/directory_file +++ b/directory_file @@ -8,8 +8,8 @@ Logo

-
{{ text_affirmation1 }}

+ {{ text_affirmation1 }} {{ text_affirmation2 }}

From ba786236a0447878ac2c45eac94003b370949a51 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:45:45 -0500 Subject: [PATCH 15/20] Update directory_file --- directory_file | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/directory_file b/directory_file index 61ba162..c15c686 100644 --- a/directory_file +++ b/directory_file @@ -9,8 +9,11 @@

+ {{ text_affirmation1 }} + {{ text_affirmation2 }} +

---- @@ -26,8 +29,16 @@

{{ drink_alcoholic_category }} - {{ drink_category }}
- + +
Neccesary ingredients
+ + + + +
{{{ table_drink }}} +
+

From bab94396ba4762ec3e2945c8eaf43f77e8bfe7bd Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:48:56 -0500 Subject: [PATCH 16/20] Black Linter --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 47c0b14..142d75c 100644 --- a/main.py +++ b/main.py @@ -105,8 +105,8 @@ 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"Someone once said: \"{affirmation}\"" - text = f"-- \"{text}\" in {translate_to} language --" + affirmation = f'Someone once said: "{affirmation}"' + text = f'-- "{text}" in {translate_to} language --' new_dictionary: Dict[str, str] = dict() new_dictionary["text_affirmation1"] = affirmation @@ -182,7 +182,7 @@ async def getAffirmation() -> Dict[str, str]: except Exception or KeyboardInterrupt: return { "text_affirmation1": "An error ocurred", - "text_affirmation2":"Please try again later" + "text_affirmation2": "Please try again later" } From efaa2ca0cdb34ea6156469ed3a1d885b1d5e7b88 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:49:49 -0500 Subject: [PATCH 17/20] Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From ac060546b0690115e905a30d407b44527e427987 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:52:10 -0500 Subject: [PATCH 18/20] Update directory_file --- directory_file | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/directory_file b/directory_file index c15c686..9b455c9 100644 --- a/directory_file +++ b/directory_file @@ -8,9 +8,9 @@ Logo

-

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

{{ text_affirmation2 }} From 77ab9669bd5b2cf7bcf763678962e3be3b2f5230 Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 22:00:13 -0500 Subject: [PATCH 19/20] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 142d75c..f9fff26 100644 --- a/main.py +++ b/main.py @@ -182,7 +182,7 @@ async def getAffirmation() -> Dict[str, str]: except Exception or KeyboardInterrupt: return { "text_affirmation1": "An error ocurred", - "text_affirmation2": "Please try again later" + "text_affirmation2": "Please try again later", } From 496b9311e4eb868845f0edbd20041290e5c50a8c Mon Sep 17 00:00:00 2001 From: nclsbayona <59931437+nclsbayona@users.noreply.github.com> Date: Thu, 14 Sep 2023 22:03:57 -0500 Subject: [PATCH 20/20] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f9fff26..b8effdf 100644 --- a/main.py +++ b/main.py @@ -181,7 +181,7 @@ async def getAffirmation() -> Dict[str, str]: except Exception or KeyboardInterrupt: return { - "text_affirmation1": "An error ocurred", + "text_affirmation1": "An error ocurred", "text_affirmation2": "Please try again later", }