Cleanup a little

This commit is contained in:
2024-02-20 19:56:54 +00:00
parent 03b9a8b446
commit 1bab028ac5
+7 -2
View File
@@ -1,5 +1,4 @@
import configparser import configparser
import copy
import logging import logging
from pprint import pprint from pprint import pprint
@@ -28,7 +27,7 @@ if __name__ == "__main__":
password = config['LOGIN']['password'] password = config['LOGIN']['password']
account_name = config['LOGIN']['account_name'] 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() auth = ACAuthenticator()
session = auth.login(username, password) session = auth.login(username, password)
pprint(session) pprint(session)
@@ -75,6 +74,12 @@ if __name__ == "__main__":
# for text in subtask_texts: # for text in subtask_texts:
# subtask['body'] = text # subtask['body'] = text
# ac.create_subtask(subtask) # 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 # # unassign a single subtask
# subtask_id = 12203 # subtask_id = 12203