[Teammetrics-discuss] Fixing lists with less than 10 authors.
    Sukhbir Singh 
    sukhbir.in at gmail.com
       
    Tue Feb  7 11:41:19 UTC 2012
    
    
  
I have done this for 'listarchives' only but if you give the go ahead
then I will implement it for 'commitstat' also (just need to change
name of the table).
On Tue, Feb 7, 2012 at 4:42 PM, Sukhbir Singh <sukhbir.in at gmail.com> wrote:
> Hi Andreas,
>
> So I just sat down to fix the issue of graph generation of lists with
> < 10 authors (the one you wanted me to fix) and here is what I came up
> with. (git pull)
>
> $ git diff 5b377a8..HEAD -- author_stats
>
>    LIST_NAME=$1
>    TOTAL_AUTHORS=`psql -t teammetrics -c "SELECT COUNT(DISTINCT name)
> FROM listarchives WHERE project = '$LIST_NAME'"`;
>    if [ $TOTAL_AUTHORS -lt $NUM ] ; then
>        NUM=$TOTAL_AUTHORS
>    fi
>
> I think this is what we were looking for.
>
> --
> Sukhbir
-- 
Sukhbir
    
    
More information about the Teammetrics-discuss
mailing list