From a27f7a4bba3b454118445db311b6378c08d049e2 Mon Sep 17 00:00:00 2001 From: Stefano Assenzo Date: Fri, 26 Aug 2022 11:44:54 +0200 Subject: [PATCH] Ok I put some comments --- index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.py b/index.py index c0b6ca9..c512514 100644 --- a/index.py +++ b/index.py @@ -34,6 +34,7 @@ def send_notification2(): f.write(current_games_title2) check_game3() +#Check if there is the third free game def check_game3(): #Check third game try: @@ -56,11 +57,12 @@ def send_notification3(): filename = 'epic_games.ico' #Create notification on Windows toast = ToastNotifier() - toast.show_toast(title="New games!", msg="The new game is: " + current_games_title2 , icon_path=filename,duration=10,threaded=False) + toast.show_toast(title="New games!", msg="The new game is: " + current_games_title3 , icon_path=filename,duration=10,threaded=False) with open('game3.txt', 'w') as f: f.write(current_games_title3) recheck_game() + #Check game and if there are new games send the notification def check_game(): print("Connect to the api")