mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-08 10:14:35 +08:00
Refactor: reformat all code for lefthook using ruff and gofmt (#16585)
This commit is contained in:
@@ -42,7 +42,7 @@ def _split_name_counter(filename: str) -> tuple[str, int | None]:
|
||||
return filename, None
|
||||
|
||||
|
||||
def duplicate_name(query_func, name_field: str="name", **kwargs) -> str:
|
||||
def duplicate_name(query_func, name_field: str = "name", **kwargs) -> str:
|
||||
"""
|
||||
Generates a unique filename by appending/incrementing a counter when duplicates exist.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user