-
-
Save gnrfan/2878907 to your computer and use it in GitHub Desktop.
small snippet to replicate circuits in development database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from circuits.models import Circuit | |
from user_profile.models import UserProfile | |
circuits = Circuit.objects.all() | |
profiles = UserProfile.objects.all() | |
countdown = 100 | |
while countdown > 0: | |
circuit = random.choice( circuits ) | |
profile = random.choice( users ) | |
circuit.remix(profile.user) | |
countdown -= 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment