From 26c988f3bcb4c55f6328ab793ac4563cc87a09f8 Mon Sep 17 00:00:00 2001 From: walkowskis Date: Wed, 22 Mar 2023 21:58:07 +0100 Subject: [PATCH] json updat --- config.json | 1 + tooGoodToGo.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index d1bc0da..deb5dc9 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,6 @@ "access_token": "", "refresh_token": "", "user_id": "", + "cookie": "", "available": [] } \ No newline at end of file diff --git a/tooGoodToGo.py b/tooGoodToGo.py index afce15b..726b8b5 100644 --- a/tooGoodToGo.py +++ b/tooGoodToGo.py @@ -28,11 +28,12 @@ def send_notification(subject, article_name): access_token = config["access_token"] refresh_token = config["refresh_token"] user_id = config["user_id"] + cookie = config["cookie"] last_available_articles = config["available"] # Create tgtg client object -client = TgtgClient(access_token=access_token, refresh_token=refresh_token, user_id=user_id) +client = TgtgClient(access_token=access_token, refresh_token=refresh_token, user_id=user_id, cookie=cookie) # Query favourites items = client.get_items()