From a2fc7583446b764d1a44ffd863d627ca92c08aa5 Mon Sep 17 00:00:00 2001 From: Andy Lulham Date: Sun, 9 Jun 2024 08:30:55 +0100 Subject: [PATCH] fix: not sure this is right but --- x_notes/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x_notes/helpers.py b/x_notes/helpers.py index 0ee363ff5..673749d3a 100644 --- a/x_notes/helpers.py +++ b/x_notes/helpers.py @@ -41,7 +41,7 @@ def save_notes( notes: dict[str, dict[str, Any]], filepath: str = "output/data/notes.json" ) -> None: noted_tweets = {} - for note in notes: + for note in notes.values(): if note["tweet_id"] not in noted_tweets: noted_tweets[note["tweet_id"]] = { k: note[k]