diff --git a/x_notes/helpers.py b/x_notes/helpers.py index bce27745..f723f095 100644 --- a/x_notes/helpers.py +++ b/x_notes/helpers.py @@ -28,6 +28,7 @@ def load_notes(filepath: str = "output/data/notes.json") -> dict[str, dict[str, "tweet", "tweet_id", "user", + "user_id", "tweet_created_at", ] if k in noted_tweet @@ -52,6 +53,7 @@ def save_notes( "tweet", "tweet_id", "user", + "user_id", "tweet_created_at", ] if k in note diff --git a/x_notes/tweets.py b/x_notes/tweets.py index a232143a..ff2a8d16 100644 --- a/x_notes/tweets.py +++ b/x_notes/tweets.py @@ -83,6 +83,7 @@ async def fetch_tweets() -> None: if tweet: note_update["lang"] = tweet.lang note_update["user"] = tweet.user.username + note_update["user_id"] = tweet.user.id note_update["tweet"] = tweet.rawContent note_update["tweet_created_at"] = tweet.date.isoformat() else: