fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix stats api
[redakcja.git]
/
src
/
catalogue
/
models.py
diff --git
a/src/catalogue/models.py
b/src/catalogue/models.py
index
38d3167
..
fb42ba8
100644
(file)
--- a/
src/catalogue/models.py
+++ b/
src/catalogue/models.py
@@
-397,7
+397,7
@@
class Book(WikidataModel):
if hasattr(self, '_content_stats'):
return self._content_stats
try:
if hasattr(self, '_content_stats'):
return self._content_stats
try:
- stats = self.document_books.first().wldocument().get_statistics()['total']
+ stats = self.document_books.first().wldocument(
librarian2=True
).get_statistics()['total']
except Exception as e:
stats = {}
self._content_stats = stats
except Exception as e:
stats = {}
self._content_stats = stats