BinaryONe commited on
Commit
f814edc
·
1 Parent(s): 0d110c1

API update

Browse files
Files changed (1) hide show
  1. FileStream/DBFiles/database.py +1 -1
FileStream/DBFiles/database.py CHANGED
@@ -58,7 +58,7 @@ class PUBLICFilesDB:
58
 
59
  async def GetLatestAllBy10(self, offset=None):
60
  try:
61
- total_results = await self.files.count_documents()
62
  offset=int( offset if offset else 0)
63
  next_offset = offset + 10
64
  if next_offset >= total_results: # Changed > to >= to handle the last page correctly
 
58
 
59
  async def GetLatestAllBy10(self, offset=None):
60
  try:
61
+ total_results = await self.files.count_documents({})
62
  offset=int( offset if offset else 0)
63
  next_offset = offset + 10
64
  if next_offset >= total_results: # Changed > to >= to handle the last page correctly