Compare commits
2 Commits
2d4816e78f
...
5a10e033a2
Author | SHA1 | Date |
---|---|---|
Danhia | 5a10e033a2 | |
Starthur | 691c53e110 |
|
@ -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.discord_id:
|
||||
data[user.discord_id] = user.campus
|
||||
if user.campus and user.discord_id:
|
||||
data[user.discord_id] = user.campus.name
|
||||
|
||||
return JsonResponse(data)
|
||||
|
||||
|
@ -70,4 +70,3 @@ def events_data(request, event_slug):
|
|||
|
||||
return JsonResponse(data)
|
||||
|
||||
|
Loading…
Reference in New Issue