From b0bb988886bfbf197fa6c35394cf4af06f4a9d4a Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 4 Nov 2018 20:19:11 -0500 Subject: Merge did not work for some reason --- inbox_for_todoist.widget/todoistinbox.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inbox_for_todoist.widget/todoistinbox.py b/inbox_for_todoist.widget/todoistinbox.py index 52443bc..86121fb 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) @@ -18,7 +21,7 @@ def main(token='___YOUR TODOIST TOKEN HERE:___'): # FIXME: Remove personal toke elif i['priority'] == 3: pri = "

" elif i['priority'] == 4: - pri = "

" # FIXME: Color coding not working... + pri = "

" rank += 1 print(pri, "", rank, '- ', i['content'], "

") # print name and id -- cgit v1.2.3