Open jauggy opened 4 months ago
To bypass email checks we can change this setting (Require Email Verification):
I still want a way to set play time though to test various chev levels.
iex -S mix phx.server
role
Teiserver.Account.update_user_stat(<ID>, %{"player_minutes"=> 100*60, "spectator_minutes"=>20*60, "total_minutes"=>130*60})
(you can only set spectator_minutes
and player_minutes
, only those are used for rank calculation)So should we put a guide for this and link it somewhere?
Either a new doc or add to testing guide.
Not necessarily, I am just showing an example of how it can be done if you need it right now for some tests. The issue is still valid and an easier way to do it would be nice.
Make it easier to add fake users with specific playtime or adjust existing users to have specific player time. Player time is used to calculate rank on login. This feature would be useful for testing.