On Sunday 05 Feb 2012 14:20:34 Timothy Bourke wrote: > Very pretty. I don't think it would be too hard to make a Mnemosyne > 2.x plugin to do this kind of animation for one's own data. > > The only tricky bit may be accessing the historical data. > > Peter, I don't remember seeing a polished API for this. Did I miss > something? Do you expect it to be easy for plugin writers to access > historical data on a per card basis? For example, to be able to > request a (lazy) list of historical card stats for a given card id?
All the statistics functions are API-ised to SQLite_statistics as I encounter them. This particular functionality is not yet API-ised, but the pseudo sql would look something like this: select * from log where object_id=card.id and event_type=EventTypes.REPETITION select * from log where object_id=card.id and event_type=EventTypes.REPETITION and timestamp <... select * from log where object_id=card.id and event_type=EventTypes.REPETITION and grade=... Would make for a nice plugin! Peter -- You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mnemosyne-proj-users?hl=en.
