diff --git a/createfile.py b/createfile.py index 83104e3..1147065 100644 --- a/createfile.py +++ b/createfile.py @@ -1,11 +1,15 @@ from datetime import date +from os import path def createfile(): filenames = ["1Start","2Middle","3End"] todaystr = date.today().strftime("%y%m%d") if date.today().weekday() < 5: for filename in filenames: - with open("journal/"+todaystr+"_"+filename,"w") as fh: + try: + with open("journal/"+todaystr+"_"+filename,"x") as fh: + pass + except: pass if __name__ == '__main__': diff --git a/myTodoist.py b/myTodoist.py index 437db2a..046df08 100644 --- a/myTodoist.py +++ b/myTodoist.py @@ -125,7 +125,7 @@ class TodoItemList: try: self.items_by_id.get(str(todoNote.item_id)).addNote(todoNote) except: - continue + pass ##@brief magic method definition to so this object can be used as a list. diff --git a/taskcheck.py b/taskcheck.py index b8b0f82..35b01df 100644 --- a/taskcheck.py +++ b/taskcheck.py @@ -11,8 +11,8 @@ def main(): # return todoist = TodoProject("Master Assignment") # getattr(todoist, sys.argv[1])() - todoist.checktaskstoday(3) - todoist.checkTasksWithoutNotes() +# todoist.checktaskstoday(3) +# todoist.checkTasksWithoutNotes() todoist.checkTasksOverDue() todoist.openTasksWithoutNotes() error = logcheck.logcheck()