From 5c625fb41f4cbbec25b2fa5c851de75235f21af2 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 4 Nov 2018 19:08:28 -0500 Subject: Widget now uses the API key provided in the todoist_API.txt file --- inbox_for_todoist.widget/todoist.cache | Bin 6 -> 25656 bytes inbox_for_todoist.widget/todoistinbox.py | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inbox_for_todoist.widget/todoist.cache b/inbox_for_todoist.widget/todoist.cache index 482c0e3..1342982 100644 Binary files a/inbox_for_todoist.widget/todoist.cache and b/inbox_for_todoist.widget/todoist.cache differ diff --git a/inbox_for_todoist.widget/todoistinbox.py b/inbox_for_todoist.widget/todoistinbox.py index 52443bc..6207da4 100644 --- a/inbox_for_todoist.widget/todoistinbox.py +++ b/inbox_for_todoist.widget/todoistinbox.py @@ -3,7 +3,10 @@ import online import pickle import os -def main(token='___YOUR TODOIST TOKEN HERE:___'): # FIXME: Remove personal token when comitting +def main(): + with open('todoist_API.txt') as f: # Opens the API key file + token = f.readline() # Sets the first line of the txt file as your API Key + if online.main() == False: with open("todoist.cache", "rb") as myFile: loaded_cache = pickle.load(myFile) -- cgit v1.2.3