From 2239fb8f4121852679e4c0a7068b018e812ef445 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Fri, 26 Jul 2013 19:25:42 +0100 Subject: [PATCH] Added 'stats_report' for cards. --- AnkiServer/apps/rest_app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AnkiServer/apps/rest_app.py b/AnkiServer/apps/rest_app.py index 4ce83a6..12ad91b 100644 --- a/AnkiServer/apps/rest_app.py +++ b/AnkiServer/apps/rest_app.py @@ -695,6 +695,10 @@ class CardHandler(RestHandlerBase): def remove_tags(self, col, req): self._forward_to_note(col, req, 'remove_tags') + def stats_report(self, col, req): + card = col.getCard(req.ids[1]) + return col.cardStats(card) + # Our entry point def make_app(global_conf, **local_conf): # TODO: we should setup the default language from conf!