Skip to content

Commit

Permalink
API updates experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
dentoir committed Apr 10, 2017
1 parent dec55db commit f191afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function do_ratelimit_info()
// "where year(created_at) = year(now()) and dayofyear(created_at) = dayofyear(date_sub(now(), interval $d day)) group by dayofyear(created_at), " .
// "phrase_id order by sum desc limit 30;
$sql = "select TQP.phrase as phrase, count(*) as sum from tcat_captured_phrases TCP inner join tcat_query_phrases TQP on TCP.phrase_id = TQP.id " .
"where year(created_at) = year(now()) and dayofyear(created_at) = dayofyear(date_sub(now(), interval 30 day)) group by " .
"where year(created_at) = year(now()) and dayofyear(created_at) >= dayofyear(date_sub(now(), interval 30 day)) group by " .
"phrase_id order by sum desc limit 50";
$rec = $dbh->prepare($sql);
$rec->execute();
Expand Down

0 comments on commit f191afe

Please sign in to comment.