sightreading.training icon indicating copy to clipboard operation
sightreading.training copied to clipboard

Stats not working?

Open ddTech opened this issue 5 years ago • 3 comments

I'm using this cool app for a few weeks now, always logged in, but the stats just show a flat line.

looking into the network traffic I see that the call to /stats.json?offset=-120 does not get data in return but an error message instead The response is {"errors":["offset must be an integer"]}

seems that the server uses the parameter without conversion.

regards Frank

ddTech avatar May 16 '19 08:05 ddTech

Awesome app! Would be cool if you fix the stats!

JanRuettinger avatar Jul 21 '19 13:07 JanRuettinger

I also found that the transmission of hits and misses stops once "clear results" has been clicked. This happens because

_this5.setState({ stats: new _note_stats2.default() });

also resets the .currentUser to nothing which is the cause that .flushLater() never arms the timer : if (!this.currentUser) { return; }

changing the setState call to

return _this5.setState({ stats: new _note_stats2.default(N.session.currentUser) });

does the cure.

regards

Frank

ddTech avatar Nov 29 '19 14:11 ddTech

Was this ever fixed? I see this is still Open. The Stats page (https://sightreading.training/stats) doesn't seem to record the stats. The stats on the Staff page do work - they're just not saved onto the Stats page (regardless of whether the clear results button is clicked or not).

jamesdeluk avatar Aug 01 '22 07:08 jamesdeluk