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