Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/apps/competitions/unpackers/base_unpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,16 @@ def _unpack_queue(self):
all_queue_organizer_names = queue.organizers.all().values_list('username', flat=True)
if queue.owner != self.creator and self.creator.username not in all_queue_organizer_names:
raise CompetitionUnpackingException("You do not have access to the specified queue!")
self.competition['queue'] = queue.id
self.competition['queue'] = {
'name': queue.name,
'vhost': queue.vhost,
'is_public': queue.is_public,
'owner': queue.owner,
'organizers': queue.organizers,
'broker_url': queue.broker_url,
'created_when': queue.broker_url,
'id': queue.id,
}
except Queue.DoesNotExist:
raise CompetitionUnpackingException("The specified Queue does not exist!")

Expand Down