Revisions
-
PuercoPop revised this gist
Jun 6, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,8 @@ countdown = 100 while countdown > 0: circuit = random.choice( circuits ) profile = random.choice( profiles ) circuit.remix(profile.user) circuit.published = True circuit.save() countdown -= 1 -
gnrfan revised this gist
Jun 5, 2012 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,11 +3,11 @@ 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 -
PuercoPop created this gist
Jun 5, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import random from circuits.models import Circuit from user_profile.models import UserProfile circuits = Circuit.objects.all() users = UserProfile.objects.all() countdown = 1 while countdown > 0: circuit = random.choice( circuits ) user = random.choice( users ) circuit.remix(user) countdown -= 1