mchlnix / habitist Goto Github PK
View Code? Open in Web Editor NEWSyncs your todoist tasks to HabitRPG
Syncs your todoist tasks to HabitRPG
I don't have a Windows machine :(
Checklist items are not like regular todos in HabitRPG.
They don't get caught by the normal upload check and are therefore uploaded every time the todos are synced.
The code to check if a task is repeating only works for the English version right now.
It would be good to break the function out of item into a TodoistHelper class and make it support different languages.
I might work on German.
On some old subtasks, there is no parent_id set.
That means we get a parent_id of None and that causes the AttributeError.
Solution: Just make it a todo?
That makes the program crash, since it assumes they are still present.
When initially syncing, completed tasks are created on HabitRPG as well. They are not checked for completion afterwards.
That means, that already completed tasks get scored only on the next sync.
That is not really a bug, but it might be easy to fix by not returning out of the sync_to_habit function after uploading a task, as long as no other type of task is negatively affected by this change.
The way habitRPG works, you can only score a daily once a day. On todoist, you can complete repeating tasks in advance, though.
That means, that completions in advance can not be scored on HabitRPG, since the daily is already completed and will not "uncomplete" itself, until the next day.
The program sees the "completed" on the HabitRPG side and the "not completed" on the todoist side and flips it back to uncompleted on HabitRPG.
The Starting Date, the way we track daily completion gets set forward, though.
Solution:
To fix the bug: Make a special case for h:completed/t:uncompleted for dailies to not reset them.
To enable scoring more often: Only update the Starting Date, when the daily is not already completed. Otherwise either leave it out of the task update or not update the task at all. That way the next day, when the daily is not completed, the date comparison will be done with the old Starting date, which will trigger a completion again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.