From 76ff8e00678adfe4f864dbb6d3722d4cda9039fa Mon Sep 17 00:00:00 2001 From: Andy Lulham Date: Sun, 9 Jun 2024 09:00:28 +0100 Subject: [PATCH] fix: typo (what a pain) --- x_notes/ratings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x_notes/ratings.py b/x_notes/ratings.py index f95c1100e..9387187f0 100644 --- a/x_notes/ratings.py +++ b/x_notes/ratings.py @@ -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)