Compare commits

..

No commits in common. "5a10e033a214896f00c010f59d8d1be606f03d1a" and "2d4816e78ff8fbf5e43556e9738baca53edb247f" have entirely different histories.

1 changed files with 11 additions and 10 deletions

View File

@ -40,8 +40,8 @@ def bot_discord_campus(request):
all_users = UserProfileInfo.objects.select_related().order_by('-score', 'last_submission_date', 'user__username')
data = {}
for user in all_users:
if user.campus and user.discord_id:
data[user.discord_id] = user.campus.name
if user.discord_id:
data[user.discord_id] = user.campus
return JsonResponse(data)
@ -70,3 +70,4 @@ def events_data(request, event_slug):
return JsonResponse(data)