Commits

Jason R. Coombs  committed 1ddf4c1

Try using count here

  • Participants
  • Parent commits b4866d8

Comments (0)

Files changed (1)

File thwump/reading.py

 		Returns the total number of documents, DELETED OR UNDELETED, in this
 		reader.
 		"""
-		return self.index.collection.get('')
+		return self.index.collection.count()
 
 	def doc_count(self):
 		"""
 		Returns the total number of UNDELETED documents in this reader.
 		"""
-		return self.index.collection.get('')
+		return self.index.collection.count()
 
 	def doc_field_length(self, docnum, fieldname, default=0):
 		"""