Closed kenwalker closed 5 years ago
Do you see this best as a date limit or a count by December order
On Sat, Apr 6, 2019, 9:55 AM Ken Walker notifications@github.com wrote:
I'm writing an application in which I'd like to show the last attendance a user had. As it is, there's no limit on the AttendanceForPlayer API call so you get all the records. I'll submit a pull request with the limit parameter optional for this API call so that my app won't waste unnecessary bandwidth on devices to retrieve this player detail.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/amtgard/ORK3/issues/209, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcEicltzH_BIhX6h6TxUu04noKEl2dHks5veKdZgaJpZM4cgNhg .
For now by descending order since that's an easy change. Date would also be very useful for computing if someone was attendance qualified for example (N times in last M months where the computation is not the same as what's used by the ORK proper) and so you don't need to retrieve ALL their attendance. I may do that as a follow on PR.
I mean count from current attendance down to zero from the limit parameter. My wording above was not great.
fixed in #210
I'm writing an application in which I'd like to show the last attendance a user had. As it is, there's no limit on the AttendanceForPlayer API call so you get all the records. I'll submit a pull request with the limit parameter optional for this API call so that my app won't waste unnecessary bandwidth on devices to retrieve this player detail.