Skip to content

Commit

Permalink
fix bugs (#662)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Fix import error for task_service.py

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored May 7, 2024
1 parent 2810c60 commit a5aed24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions api/apps/document_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
from api.settings import RetCode
from api.utils.api_utils import get_json_result
from rag.utils.minio_conn import MINIO
from rag.utils.redis_conn import REDIS_CONN
from api.utils.file_utils import filename_type, thumbnail
from rag.settings import SVR_QUEUE_NAME


@manager.route('/upload', methods=['POST'])
Expand Down
5 changes: 4 additions & 1 deletion api/db/services/task_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@
from api.db.services.document_service import DocumentService
from api.utils import current_timestamp, get_uuid
from deepdoc.parser.excel_parser import RAGFlowExcelParser
from rag.settings import MINIO, SVR_QUEUE_NAME
from rag.settings import SVR_QUEUE_NAME
from rag.utils.minio_conn import MINIO
from rag.utils.redis_conn import REDIS_CONN


class TaskService(CommonService):
model = Task

@classmethod
@DB.connection_context()
def get_tasks(cls, task_id):
fields = [
cls.model.id,
Expand Down

0 comments on commit a5aed24

Please sign in to comment.