From 1bab028ac5cd42f8d4c64ac4e14031813e9b0062 Mon Sep 17 00:00:00 2001 From: cs Date: Tue, 20 Feb 2024 19:56:54 +0000 Subject: [PATCH] Cleanup a little --- main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7eb7f43..f9e6fff 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,4 @@ import configparser -import copy import logging from pprint import pprint @@ -28,7 +27,7 @@ if __name__ == "__main__": password = config['LOGIN']['password'] account_name = config['LOGIN']['account_name'] - # 1. you need to login to get a session and a list of accounts + # 1. you need to log in to get a session and a list of accounts auth = ACAuthenticator() session = auth.login(username, password) pprint(session) @@ -75,6 +74,12 @@ if __name__ == "__main__": # for text in subtask_texts: # subtask['body'] = text # ac.create_subtask(subtask) + # delete + # for text in subtask_texts: + # subtask = ac.find_subtask_with_body(task, text) + # if subtask is not None: + # print(subtask) + # ac.delete_subtask(subtask) # # unassign a single subtask # subtask_id = 12203