From 03bad7b1d65394eff846f411aa5c49982843b100 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 16 Mar 2021 14:54:38 +0100 Subject: ~rating --- api/user/info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/user/info.py') diff --git a/api/user/info.py b/api/user/info.py index b60593e..a9594aa 100644 --- a/api/user/info.py +++ b/api/user/info.py @@ -1,6 +1,7 @@ from flask import Blueprint, request from db import cursor from auth.login_token import token_login +from rating import get_rating import json def valid_user_id(user_id): @@ -38,7 +39,8 @@ def format_user(user_id, viewer = ''): "registered": user[3], "avatar": user[4], "status": user[5], - "friends": count_friends(user_id) + "friends": count_friends(user_id), + "rating": get_rating(user_id), } if viewer: formatted_user["relation"] = get_relation_to(viewer, user_id) -- cgit v1.2.3