Skip to content
Browse files

adding "getneeded" endpoint to return a list of browsers needed

to enable automated testing / continuous integration
  • Loading branch information...
1 parent db410f5 commit fbddb84879c7404c5db60039a114c595779fdff2 @clarkbox committed Feb 4, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 logic/getneeded.php
View
10 logic/getneeded.php
@@ -0,0 +1,10 @@
+<?php
+ $result = mysql_queryf("select distinct useragent_id from run_useragent where runs<1 and status=0;");
+ $useragent_ids = array();
+
+ while($row = mysql_fetch_array($result)){
+ array_push($useragent_ids, intval($row[0]));
+ }
+ echo json_encode($useragent_ids);
+
+ exit();

0 comments on commit fbddb84

Please sign in to comment.
Something went wrong with that request. Please try again.