Hoffelhas
0a16de9a10
Extra logs for sync api
2023-01-29 16:43:16 +01:00
Hoffelhas
a560a59857
Final preparations for v2.0
2023-01-15 22:00:00 +01:00
Hoffelhas
1f8f6ab182
Merge pull request #31 from obbardc/wip/obbardc/docker-dev
...
Build and publish Docker image in GitHub actions
2023-01-15 21:57:12 +01:00
Hoffelhas
8a1bc1d5ec
Final preparations for v2.0
2023-01-15 21:55:30 +01:00
Hoffelhas
956f5176af
Final preparations for v2.0
2023-01-15 16:38:34 +01:00
Hoffelhas
8b23fbd59a
Final preparations for v2.0
2023-01-15 14:08:25 +01:00
Hoffelhas
a4f99fa0c1
Minor clean-up of code
2023-01-15 13:53:28 +01:00
Hoffelhas
a66905e88c
Only sync changes if api.queue has content. Else we'll time out after 45 minutes of no changes.
2023-01-15 11:02:26 +01:00
Hoffelhas
cf57687068
Implemented the filtered lists. Significant decrease of api requests and noticable speed-up!
2023-01-15 00:24:17 +01:00
Hoffelhas
adb7ae86de
Build project and section dictionary from api.get_tasks() to save on api requests. Still todo: implement this into the loops.
2023-01-14 23:57:22 +01:00
Hoffelhas
8541f06d92
Implemented SYNC API and commit queue, to ensure task content updates are sent in batches. This to ensure we don't run into the requests limits.
2023-01-14 22:01:09 +01:00
Hoffelhas
b741b83b14
Added possibility to ignore section labelling by providing a * either at the start or end of the section name. Useful for additional flexibility with e.g. kanban board.
2023-01-13 21:32:06 +01:00
Christopher Obbard
f47e974c7c
Allow setting Todoist API key from environment variable
...
In the Docker world, secrets (e.g. passwords, API keys) are usually shared
with an application as environment variables so that they can be imported
from separate secure areas: in docker-compose you can specify a file
where secrets are imported from as environment variables.
Read the API key from the TODOIST_API_KEY environment variable first, then
check the command-line argument.
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
2023-01-13 18:11:53 +00:00
Hoffelhas
1312474e53
Manually added a similar fix as proposed in pull request #20
2023-01-13 18:02:46 +01:00
Hoffelhas
e41dab3156
Minor cleanup
2023-01-13 17:02:53 +01:00
Hoffelhas
3a02d0d8c9
Fixed merge issues
2023-01-13 17:01:43 +01:00
Hoffelhas
4dcce138c0
Added logic to show correct change counter in terminal
2023-01-13 16:58:16 +01:00
Hoffelhas
707482cf17
Adding and removing headers defined on parentless task level now processes all children correctly.
2023-01-13 16:35:00 +01:00
Hoffelhas
bf6ce05ad8
bugfix needed: modify_headers does seem to work correctly at parentless task level
2023-01-12 21:42:21 +01:00
Hoffelhas
e1c0060afb
check_header function updated
2023-01-12 21:32:51 +01:00
Hoffelhas
685da743ab
Fix found for updating the due task date, which keeps the recurring string intact
2023-01-12 21:04:49 +01:00
Hoffelhas
7f766a5df7
Minor update
2023-01-10 20:24:33 +01:00
Hoffelhas
ce8044d5a7
Minor update to get_all_data
2023-01-10 20:20:54 +01:00
Hoffelhas
619489a1d0
Initial update of check_header function. Still to finish and test
2023-01-09 22:33:15 +01:00
Hoffelhas
af63bb97c0
Minor addition of logging
2023-01-09 21:45:08 +01:00
Hoffelhas
24d88460fb
Changed end-of-day functionality, but apparently updating the due-date with the new API will remove the recurring settings. Brilliant. Need to find a fix for this.
2023-01-08 22:23:54 +01:00
Hoffelhas
4aad462ce3
Start=due-x functionality working again. Time set by user is now also included in the diff calculation
2023-01-08 18:42:16 +01:00
Hoffelhas
81769968ae
Start=DD-MM-YYYY functionality working again.
2023-01-08 18:13:06 +01:00
Hoffelhas
43e598a87a
Fixed -hf flag not working correctly
2023-01-08 17:37:24 +01:00
Hoffelhas
b2f2fa270e
Bugfix where manually changing the order of sequential tasks would not remove old labels.
2023-01-08 17:11:47 +01:00
Hoffelhas
97a7073f1c
Minor cleanup of code
2023-01-08 16:21:50 +01:00
Hoffelhas
a589c159c0
Type indication now seems to work on all levels
2023-01-08 15:32:21 +01:00
Hoffelhas
86eb720f50
Overhaul labelling functionality now working on project level. Next: debug section and parentless tasks level.
2023-01-08 14:58:49 +01:00
Hoffelhas
aa274d5132
Additional testing of labelling logic
2023-01-07 16:13:43 +01:00
Hoffelhas
e9b2dd6f21
Fixed labelling bug with SEQ mode due to legacy code
2023-01-07 15:44:56 +01:00
Hoffelhas
fc9aa8da4f
Children are now cleaned correctly after task_type change
2023-01-07 15:07:57 +01:00
Hoffelhas
0c64e99455
Core labelling functionality now seems to function. Still need to fix one bug with cleaning children if task_type is set.
2023-01-04 21:12:39 +01:00
Hoffelhas
4a236153d0
Added 'get_all_data' function to use the SYNC API v9 to obtain all the data in your Todoist. Needed for seeing e.g. completed tasks, which the REST API v2 does not provide.
2023-01-04 10:01:00 +01:00
Hoffelhas
374d216a83
Basic SQLite DB functionality now working. Next: rewrite 'get_task_type()' function, and start some refactoring/debugging.
2023-01-03 16:06:46 +01:00
Hoffelhas
2625547002
Basic labelling functionality working again. Still need to fix metadata storage
2023-01-02 16:28:16 +01:00
Hoffelhas
95a71524cd
Initial changes made to REST API. Working on a Sync API workaround to find completed tasks now.
2022-12-17 19:31:19 +01:00
Hoffelhas
3a25e05aa3
Initial check of 'T0 task date has changed' still included the time, hence check always failed. Now [:10] has been added to exclude a time during the check
2021-09-20 13:26:47 +02:00
Hoffelhas
7857a397fc
Times in a due date could now be processed. At the moment, only the first 10 string characters are read, which only includes 'YYYY-MM-DD'. This has been updated for all relevant variables which use the due date.
2021-08-24 16:14:22 +02:00
Hoffelhas
482f27ff50
Added hotfix for detection of underscore replacement of the exclamation mark
2021-08-24 14:49:34 +02:00
Gwyndolyn Marchant
d0b074e0fe
fix for shifted end-of-day
2021-06-16 23:02:27 -04:00
Hoffelhas
c7ab4e564c
v1.5
2021-01-25 18:00:43 +01:00
Hoffelhas
4c421b7577
Fixed bug with incorrect label recognition. Added new debug logging lines, and removed redundant ones
2021-01-23 21:29:06 +01:00
Hoffelhas
a4ac562068
Made -r tag backwards compatible with v1.4
2021-01-17 15:14:33 +01:00
Hoffelhas
bd9e5d021b
Fixed a view bugs for the new regeneration mode, plus some additional clean-up of code. In addition fixed a labelling bug on deeper levels, and headered items will be cleaned of old next-action labels.
2021-01-17 14:58:14 +01:00
Hoffelhas
f97c7e70e0
Implemented new structure for regeneration mode. New modes have been added, and specific modes can be assigned to tasks by use of labels.
2021-01-16 22:42:46 +01:00