ccomeaux / boardgamegeek4android

BoardGameGeek application for Android (unofficial)
GNU General Public License v3.0
228 stars 47 forks source link

Add Sort by Total Time Played #99

Closed tupaschoal closed 4 years ago

tupaschoal commented 6 years ago

This changeset adds a Sorter by total time played. It is mostly functional, the only thing missing is where to source the "total time played". I know it is available in GamePlayStatsFragment, but dunno how to access or make it available on the sorter.

@ccomeaux if you can help me out with that, I can make this functional!

ccomeaux commented 6 years ago

This is a calculated field. If the play has a length assigned to it, use that. If not, multiply the quantity in the play by the play time from the game. This can further be enhanced by using the play's player count, and choosing the play time be extrapolating between the min and max. This will need to be stored as a field in the game.

I'd like to store several of the play stats with the game so that we can perform sorts and filters on them, but that's a bigger project. I think this PR may be blocked until that can get done.

tupaschoal commented 6 years ago

Ah, that's sad. Anything else you think I can work on in the meantime? (We can keep the conversation through email if you prefer )