WebAdminPanel/apps/group_stat_api.py

13 lines
332 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from flask import Blueprint, jsonify
group_stat_api = Blueprint('group_stat_api', __name__)
@group_stat_api.route("/top3_users",methods=["POST"])
def top_users():
# TODO: database
return jsonify({
"members": ["Mr.D", "𝙲𝚊𝚝𝚒𝚘𝚗", "Тёма","Others"],
"counts":[4026,3024,2024,4096]
})