chrisbillows / raindrop-todoist-syncer

Converts favourited Raindrops into tasks in Todoist.
2 stars 1 forks source link

Flag Raindrops as 'deleted' within the database if they are removed from Raindrop.io #24

Open chrisbillows opened 7 months ago

chrisbillows commented 7 months ago

Relies on #13.

Why!? Yes, it's not strictly but...

This disparity is annoying and makes logging less reliable:

2024-02-24 17:14:17 | INFO | Collected 1095 total bookmarks.
2024-02-24 17:14:17 | INFO | Includes 18 favourites.
2024-02-24 17:14:17 | INFO | db holds 19 favourited rds previously tracked
2024-02-24 17:14:17 | INFO | Total untracked favourites found: 0

It will be nice SQLite practice.

There may be a simple path - create additional fields in the db:

{
    'removed':  'True',
    'removal_date': '<date>'
}

Then update the logging logic (and perhaps logic in other places) to exclude 'removed' rds.

This could be worth considering alongside #17 as both are adding fields to the db.