Skip to content

Commit

Permalink
fix: exclude unhelpful notes
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 14, 2024
1 parent deb469d commit 42ff830
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x_notes/statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def add_statuses(notes: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]]:
row["firstNonNMRStatus"] != helpful
and row["mostRecentNonNMRStatus"] != helpful
):
# this has consistently been rated unhelpful,
# so exclude it
del notes[note_id]
continue
if row["firstNonNMRStatus"] == helpful:
from_ts = to_isoformat(row["timestampMillisOfFirstNonNMRStatus"])
Expand Down

0 comments on commit 42ff830

Please sign in to comment.