Skip to content

Commit

Permalink
Fix error #47, error when counting tops from affiliations (just an 'u…
Browse files Browse the repository at this point in the history
…' ¬¬)
  • Loading branch information
dicortazar committed Jan 30, 2014
1 parent 8ccc217 commit 40378b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vizgrimoire/R/ITS.R
Original file line number Diff line number Diff line change
Expand Up @@ -1046,12 +1046,12 @@ GetCompanyTopClosers <- function(company_name, startdate, enddate,
",identities_db,".companies com,
",identities_db,".upeople up
WHERE ", GetFiltersCompaniesITS()," AND ", closed_condition, "
AND pup.people_id = up.id
AND pup.upeople_id = up.id
AND upc.company_id = com.id
AND com.name = ",company_name,"
AND changed_on >= ",startdate," AND changed_on < ",enddate,
affiliations, "
GROUP BY changed_by ORDER BY closed DESC LIMIT 10;",sep='')
GROUP BY up.identifier ORDER BY closed DESC LIMIT 10;",sep='')
query <- new ("Query", sql = q)
data <- run(query)
return (data)
Expand Down

0 comments on commit 40378b0

Please sign in to comment.