-
Notifications
You must be signed in to change notification settings - Fork 9
Banning cheaters and re‐awarding medals
César Del Solar edited this page Aug 19, 2024
·
2 revisions
- Delete their name from the admin console (more accurately, make it inactive)
- In the django shell:
from wordwalls.models import Medal, DailyChallengeLeaderboardEntry, DailyChallengeLeaderboard
Medal.objects.filter(user__username='AerolithBot').delete()
DailyChallengeLeaderboardEntry.objects.filter(user__username='AerolithBot').delete()
Delete all the medals for that day:
Medal.objects.filter(leaderboard__challenge__date='20240817', leaderboard__challenge__lexicon__lexiconName='NWL23').delete()
Mark those challenges as unawarded:
DailyChallengeLeaderboard.objects.filter(challenge__date='20240817', challenge__lexicon__lexiconName='NWL23').update(medalsAwarded=False)
Medals will be re-awarded a bit after midnight PST.