From a56f050009ac87ce6009603a10ead96ad279af62 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Wed, 1 May 2024 12:29:36 +0530 Subject: [PATCH] Fix `parse_rating()` function return type --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2db0af9..13463f7 100644 --- a/main.py +++ b/main.py @@ -30,7 +30,7 @@ def save() -> int: with open("db/profiles.json", 'w+') as f: json.dump(profile_metadata, f, indent=4) # TODO: Uncomment this line once full profile metadata support is ready return 0 -def parse_rating(user_id: Union[int, str]) -> int: +def parse_rating(user_id: Union[int, str]) -> float: users_rated = [] for user in user_ratings[str(user_id)].keys(): users_rated.append(user)