- Change top models from Top 3 to Top 5 - Simplify titles: remove 'Top X' and parenthetical details - Replace separate user tables (by amount/by count) with single ChartBar - Replace separate provider tables with single ChartBar - Add get_top_users_combined and get_top_providers_combined functions
7 lines
186 B
Plaintext
7 lines
186 B
Plaintext
# coding=utf-8
|
|
"""Top providers data API for ChartBar"""
|
|
import json
|
|
|
|
providers = await get_top_providers_combined(request)
|
|
return json.dumps(providers, ensure_ascii=False, default=str)
|