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
Hoffelhas
376e176d6b
General clean-up of code
2021-01-16 17:14:22 +01:00
Hoffelhas
17cc3a8418
Wrong warning message was given for a different kind of wrong syntax; additional warning added.
2021-01-16 15:54:21 +01:00
Hoffelhas
16d404a9ed
Fixed bug which caused a wrong read of the start=DATE string
2020-12-31 16:02:58 +01:00
Hoffelhas
ea20ad2aa1
Clean-up for v1.4
2020-12-30 13:46:20 +01:00
Hoffelhas
ecbe8a28fa
Added logic to header or unheader multiple items, specifiec from project, section, or top item level
2020-12-30 13:21:16 +01:00
Hoffelhas
346702b904
Debug header_items
2020-12-30 01:32:17 +01:00
Hoffelhas
3e14d69653
Added possibility to define start-date as an offset from due-date.
2020-12-30 00:35:07 +01:00
Hoffelhas
41c3cc3b5c
Tested new section logic. In addition 'delay' has been optimised by taking computation time into account. General clean-up of code
2020-12-29 22:56:55 +01:00
Hoffelhas
c50f62d946
Sections refactoring completed. Next up, code-cleanup and testing
2020-12-28 23:18:54 +01:00
Hoffelhas
3943c5c614
Pseudocode updated, section loop build-in, still need to build a class to handle 'no section' tasks, and finalize labeling logic
2020-12-17 21:02:30 +01:00
Hoffelhas
a913c74086
Decided to add a separate section loop to allow for a better flow of the logic. Initial start made, still needs to be fleshed out.
2020-12-16 22:05:27 +01:00
Hoffelhas
6d3439019c
Continued work on section labelling
2020-12-07 22:45:12 +01:00