Skip to content

Commit

Permalink
Sort tweets by score
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Jun 13, 2024
1 parent 7a77d08 commit 5de5a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x_notes/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def save_notes(
}
)
noted_tweets[note["tweet_id"]]["notes"].sort(
key=lambda x: x["created_at"],
key=lambda x: x["score"],
reverse=True,
)
with open(filepath, "w") as fh:
Expand Down

0 comments on commit 5de5a68

Please sign in to comment.