diff options
author | Benjamin Chausse <ChausseBenjamin@users.noreply.github.com> | 2018-11-04 19:08:28 -0500 |
---|---|---|
committer | Benjamin Chausse <ChausseBenjamin@users.noreply.github.com> | 2018-11-04 19:08:28 -0500 |
commit | 5c625fb41f4cbbec25b2fa5c851de75235f21af2 (patch) | |
tree | 033cde3da950a6651890642afb3e9b60fee1d961 | |
parent | 1a2be8e311f07f1776313c84e5f9c3a5aca4d733 (diff) |
Widget now uses the API key provided in the todoist_API.txt file
-rw-r--r-- | inbox_for_todoist.widget/todoist.cache | bin | 6 -> 25656 bytes | |||
-rw-r--r-- | inbox_for_todoist.widget/todoistinbox.py | 5 |
2 files changed, 4 insertions, 1 deletions
diff --git a/inbox_for_todoist.widget/todoist.cache b/inbox_for_todoist.widget/todoist.cache Binary files differindex 482c0e3..1342982 100644 --- a/inbox_for_todoist.widget/todoist.cache +++ b/inbox_for_todoist.widget/todoist.cache 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) |