forked from science-ation/science-ation
Make some judges be incomplete when populating with fake data
This commit is contained in:
parent
d3090b934f
commit
79fe64926c
@ -24,7 +24,7 @@
|
||||
<?
|
||||
include "../common.inc.php";
|
||||
|
||||
$numjudges=150;
|
||||
$numjudges=200;
|
||||
|
||||
mysql_query("TRUNCATE TABLE judges");
|
||||
mysql_query("TRUNCATE TABLE judges_catpref");
|
||||
@ -103,7 +103,11 @@ for($x=0;$x<$numjudges;$x++)
|
||||
|
||||
echo "Creating $firstname $lastname ($email) s=$years_school r=$years_regional n=$years_national wc=$willing_chair <br />\n";
|
||||
|
||||
$q=mysql_query("INSERT INTO judges (firstname,lastname,email,years_school,years_regional,years_national,willing_chair,complete) VALUES ('$firstname','$lastname','$email','$years_school','$years_regional','$years_national','$willing_chair','yes')");
|
||||
//there's a 1 in 30 chance that this judge is not yet completed their info
|
||||
$compnum=rand(0,30);
|
||||
if($compnum==1) $complete="no"; else $complete="yes";
|
||||
|
||||
$q=mysql_query("INSERT INTO judges (firstname,lastname,email,years_school,years_regional,years_national,willing_chair,complete) VALUES ('$firstname','$lastname','$email','$years_school','$years_regional','$years_national','$willing_chair','$complete')");
|
||||
$id=mysql_insert_id();
|
||||
|
||||
//for both these, the annealer expects -2 to 2 , but since expertise was done waaaaaay before as 1-5 we'll add it as 1-5 and the annealer will subtract 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user