Skip to content

Commit

Permalink
fix: typo (what a pain)
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Jun 9, 2024
1 parent 69a5909 commit 76ff8e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x_notes/ratings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def add_ratings(notes: dict[str, dict[str, Any]]) -> None:
if row["noteId"] in notes:
note = notes[row["noteId"]]
# rating = helpfulness_lookup[row["helpfulnessLevel"]]
if "rating" not in note:
note["rating"] = 0
note["rating"] += 1
if "ratings" not in note:
note["ratings"] = 0
note["ratings"] += 1
index += 1
save_notes(notes)

Expand Down

0 comments on commit 76ff8e0

Please sign in to comment.