EdwardBetts / depicts

Wiki Art Depiction Explorer
https://art.wikidata.link/
GNU General Public License v3.0
4 stars 3 forks source link

User total statements count seems to be project total instead #10

Open reosarevok opened 4 years ago

reosarevok commented 4 years ago

https://art.wikidata.link/user/Reosarevok currently says "This user has added a total of 6997 depicts statements."

That's clearly wrong - I'm pretty sure that's the total number for the Depiction Explorer :)

https://github.com/EdwardBetts/depicts/blob/db0eda0abf1762757050af46c19b862f573e6d54/app.py#L475 is passing just edits = Edit.query, but you probably need to filter it (might be fine to just use edit_list.count() instead in https://github.com/EdwardBetts/depicts/blob/a5dfbd040a01108072ea3540cdae859f86565cab/templates/user_page.html#L8 but I don't feel like figuring out how to set up the project just for that :) )