Add more TODOs

This commit is contained in:
Joshua Coles 2024-02-19 09:22:16 +00:00
parent 97688b49c9
commit 057fa81e67
2 changed files with 5 additions and 2 deletions

View File

@ -34,3 +34,6 @@ see `arc-ingester --help` for more information.
- Investigate using modified date as a replacement for hashing to determine if a file has changed
- At the very least, use the modified date to determine if a file has changed and then hash check the ones that have
the same modified date.
- Multithreading
- Error handling
- What happens if some places or activities are deleted from the app? I think atm they will be left in the database.

View File

@ -148,8 +148,8 @@ async fn main() {
.execute(&db).await.unwrap();
}
// Take all of the changed files' timeline items, and group them by item_id, then take the latest one.
// If we are needing to updated the database it will be with this one.
// Take all the changed files' timeline items, and group them by item_id, then take the latest one.
// If we are needing to update the database it will be with this one.
let possibly_timeline_items = need_refresh.into_iter()
.flat_map(|f| f.json.timeline_items)
.group_by(|item| item.item_id.clone())