Open-Assistant
Open-Assistant copied to clipboard
Exclude certain users from leader board stats
- Add a new
stats_enabledboolean column (defaultTrue) to the (User model) that indicates whether the user should be included in the leader board stats calculation or not (generate alembic migration scriptalembic revision --autogenerate -m "..."). - modify UserStatsRepository to exclude users that have
stats_enabled == False - allow updating
stats_enabledvia RESTPUTto/api/v1/users/{user_id}, see update_user()
@andreaskoepf I am interested in this task.
@akhil-datla please let us know if you have time to further work on #785. Otherwise we need to re-assign the task.