get user contribution number in pybossa
<p>I'm building a project in Pybossa. 
When I export users, on exported user data I want to include a field which to get the number of contributions that each user did. </p>

<p>On PyBossa project statistics page I see that there is table with all contributors which is generated from this method in python: </p>

<pre><code>    userStats = dict(
        geo=current_app.config['GEO'],
        anonymous=dict(
            users=users_stats['n_anon'],
            taskruns=users_stats['n_anon'],
            pct_taskruns=anon_pct_taskruns,
            top5=users_stats['anon']['top5']),
        authenticated=dict(
            users=users_stats['n_auth'],
            taskruns=users_stats['n_auth'],
            pct_taskruns=auth_pct_taskruns,
            top5=users_stats['auth']['top5']))
</code></pre>

<p>Based on this I can't define a method which will return user submission by id? I know that I can do a query, but I asking here if there is aleardy a method which I can use to achieve this? </p>

<p>Unfortunately this is not implemented. However, you can build a plugin yourself that will include that information, or if you prefer send us a pull request to include that feature. Happy to merge it into our upstream code base of PYBOSSA.</p>

<p>See documentation about our plugin architecture here: <a href="http://docs.pybossa.com/en/latest/plugins.html?highlight=plugin" rel="nofollow">http://docs.pybossa.com/en/latest/plugins.html?highlight=plugin</a></p>

<p>See how to contribute here: <a href="https://github.com/PyBossa/pybossa/blob/master/CONTRIBUTING.md" rel="nofollow">https://github.com/PyBossa/pybossa/blob/master/CONTRIBUTING.md</a></p>

<p>Cheers,</p>

<p>Daniel</p>

python postgresql pybossa