diff --git a/README.md b/README.md index dc0c144..d0de165 100644 --- a/README.md +++ b/README.md @@ -377,7 +377,10 @@ guarantee that your application continues to function properly in the future. ```json { "action": "getCollectionStatsHTML", - "version": 6 + "version": 6, + "params": { + "wholeCollection": true + } } ``` diff --git a/plugin/__init__.py b/plugin/__init__.py index 9e1b91e..fa3cccf 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -299,8 +299,10 @@ class AnkiConnect: @util.api() - def getCollectionStatsHTML(self): - return self.collection().stats().report() + def getCollectionStatsHTML(self, wholeCollection=True): + stats = self.collection().stats() + stats.wholeCollection = wholeCollection + return stats.report() #