From 3890a7e1d4e786ed459521567ff73dd6143a2bc2 Mon Sep 17 00:00:00 2001 From: Andy Lulham Date: Sat, 11 May 2024 23:20:40 +0100 Subject: [PATCH] Mark deleted tweets as such --- x_notes/tweets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x_notes/tweets.py b/x_notes/tweets.py index 376a1ed7..daf58772 100644 --- a/x_notes/tweets.py +++ b/x_notes/tweets.py @@ -69,6 +69,8 @@ def get_next_unfetched_note(notes: dict[str, dict[str, Any]]) -> dict[str, Any] note["lang"] = tweet.lang note["user"] = tweet.user.username note["tweet"] = tweet.rawContent + else: + note["deleted"] = 1 notes[note_id] = note save_notes(notes)