Other modules of the user app¶
Points¶
Points manager.
- get_points_balance(user_id: int) int ¶
Get user points balance.
- class PointsManager¶
Bases:
object
Points manager class.
- static get_number_points(user_id: int) int ¶
Get points to award for specific user.
The amount of reward points may differ among users.
- Parameters:
user_id (int) – The user ID to whom points are awarded.
- Returns:
The number of points as a reward for success task solution.
- Return type:
int