import random

from django.core.management.base import BaseCommand
from django.contrib.auth.models import User

from ...models import (
    Transcript, TranscriptPhraseVote
)
from ...tasks import update_transcript_stats


class Command(BaseCommand):
    help = 'Creates random votes for 5 phrases in a random transcript'

    def handle(self, *args, **options):
        users = User.objects.all()
        transcript = Transcript.objects.random_transcript(in_progress=False).first()
        phrases = transcript.phrases.all()[:5]
        for phrase in phrases:
            for user in users:
                TranscriptPhraseVote.objects.create(
                    transcript_phrase=phrase,
                    user=user,
                    upvote=random.choice([True, False])
                )
        update_transcript_stats(transcript)

@@ -389,16 +389,20 @@
 ts.all()
+%5B:5%5D
 %0A       
@@ -452,16 +452,29 @@
 nscript(
+%0A            
 in_progr
@@ -482,16 +482,25 @@
 ss=False
+%0A        
 ).first(

Use a smaller set of users in fake game one gameplay