jack 1 개월 전
부모
커밋
28f0c03cf3
1개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 10 3
      py/core/main/services/management_service.py

+ 10 - 3
py/core/main/services/management_service.py

@@ -1022,11 +1022,15 @@ class ManagementService(Service):
             }
 
         max_documents = await self.get_user_max_documents(user_id)
-        used_documents = (
+        used_documents = 0
+        
+        '''
+        (
             await self.providers.database.documents_handler.get_documents_overview(
                 limit=1, offset=0, filter_user_ids=[user_id]
             )
         )["total_entries"]
+        '''
         max_chunks = await self.get_user_max_chunks(user_id)
         used_chunks = 0
         
@@ -1039,12 +1043,15 @@ class ManagementService(Service):
         '''
         
         max_collections = await self.get_user_max_collections(user_id)
-        used_collections: int = (  # type: ignore
+        used_collections: int = 0
+        '''
+        (  # type: ignore
             await self.providers.database.collections_handler.get_collections_overview(
                 limit=1, offset=0, filter_user_ids=[user_id]
             )
         )["total_entries"]
-
+        '''
+        
         storage_limits = {
             "chunks": {
                 "limit": max_chunks,