Added 'stats_report' for cards.

This commit is contained in:
David Snopek 2013-07-26 19:25:42 +01:00
parent b97f34d741
commit 2239fb8f41

View File

@ -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!