Skip to content

Commit

Permalink
Fix requirements and cleanup tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixellion committed Jan 16, 2023
1 parent 1b46cc9 commit 7d61f9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ def get_project_items(project_name):
if item['checked'] == 0 or config['show_completed_tasks']:
items.append(item_text)

# Cleanup completed tasks
if config['remove_completed_tasks'] and item['checked'] == 1:
remember_task(item['content'])
if config['clean_up_completed_tasks']:
print(f"Deleting task '{item['content']}'")
todoist_api.delete_item(item)
elif item['checked'] != 1 and item['checked'] != 0:
print("Something's not right, did Todoist change API? item['checked'] is not 0 or 1:")
# Cleanup completed tasks
if config['remove_completed_tasks'] and item['checked'] == 1:
remember_task(item['content'])
if config['clean_up_completed_tasks']:
print(f"Deleting task '{item['content']}'")
todoist_api.delete_item(item)
elif item['checked'] != 1 and item['checked'] != 0:
print("Something's not right, did Todoist change API? item['checked'] is not 0 or 1:")
return items


Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PyYaml
easywebdav
icalendar
requests
requests
timeago

0 comments on commit 7d61f9d

Please sign in to comment.