diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-16 14:54:38 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-16 14:54:38 +0100 |
commit | 03bad7b1d65394eff846f411aa5c49982843b100 (patch) | |
tree | a0553a51f2e2947ba64013ea52e6410238efc399 /api/user | |
parent | 447926f7825e1995a52fc7315493e416b83e50f2 (diff) |
~rating
Diffstat (limited to 'api/user')
-rw-r--r-- | api/user/info.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |