feat: improve code formatting and readability in model handlers

- Add blank line after module docstring for better PEP 8 compliance
- Reformat long lines to adhere to 88-character limit using Black-style formatting
- Improve string consistency by using double quotes consistently
- Enhance readability of complex list comprehensions and method calls
- Maintain all existing functionality while improving code structure
This commit is contained in:
Will Miao
2026-01-13 22:56:55 +08:00
parent 0c96e8d328
commit bc08a45214
7 changed files with 918 additions and 338 deletions

View File

@@ -10870,7 +10870,7 @@ function useLoraPoolApi() {
});
};
const fetchLoras = async (params) => {
var _a, _b, _c;
var _a, _b, _c, _d;
isLoading.value = true;
try {
const urlParams = new URLSearchParams();
@@ -10883,6 +10883,7 @@ function useLoraPoolApi() {
urlParams.set("folder", params.foldersInclude[0]);
urlParams.set("recursive", "true");
}
(_d = params.foldersExclude) == null ? void 0 : _d.forEach((folder) => urlParams.append("folder_exclude", folder));
if (params.noCreditRequired !== void 0) {
urlParams.set("credit_required", String(!params.noCreditRequired));
}

File diff suppressed because one or more lines are too long