Skip to content

Commit

Permalink
Refactor method name (infiniflow#760)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

infiniflow#757

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN authored May 14, 2024
1 parent 75f3051 commit 7ceb0f9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/apps/chunk_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@manager.route('/list', methods=['POST'])
@login_required
@validate_request("doc_id")
def list():
def list_chunk():
req = request.json
doc_id = req["doc_id"]
page = int(req.get("page", 1))
Expand Down
2 changes: 1 addition & 1 deletion api/apps/dialog_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_kb_names(kb_ids):

@manager.route('/list', methods=['GET'])
@login_required
def list():
def list_dialogs():
try:
diags = DialogService.query(
tenant_id=current_user.id,
Expand Down
2 changes: 1 addition & 1 deletion api/apps/document_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def create():

@manager.route('/list', methods=['GET'])
@login_required
def list():
def list_docs():
kb_id = request.args.get("kb_id")
if not kb_id:
return get_json_result(
Expand Down
2 changes: 1 addition & 1 deletion api/apps/file_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def create():

@manager.route('/list', methods=['GET'])
@login_required
def list():
def list_files():
pf_id = request.args.get("parent_id")

keywords = request.args.get("keywords", "")
Expand Down
2 changes: 1 addition & 1 deletion api/apps/kb_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def detail():

@manager.route('/list', methods=['GET'])
@login_required
def list():
def list_kbs():
page_number = request.args.get("page", 1)
items_per_page = request.args.get("page_size", 150)
orderby = request.args.get("orderby", "create_time")
Expand Down
2 changes: 1 addition & 1 deletion api/apps/llm_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def my_llms():

@manager.route('/list', methods=['GET'])
@login_required
def list():
def list_app():
model_type = request.args.get("model_type")
try:
objs = TenantLLMService.query(tenant_id=current_user.id)
Expand Down

0 comments on commit 7ceb0f9

Please sign in to comment.