mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-02 19:59:56 +00:00
Catch sqlite exceptions, add tag list endpoint
This commit is contained in:
@@ -179,7 +179,10 @@ function increaseUseCount(tagName) {
|
||||
}
|
||||
// Get use count of tag from the database
|
||||
async function getUseCount(tagName) {
|
||||
return (await fetchAPI(`tacapi/v1/get-use-count/${tagName}`, true, false))["count"];
|
||||
return (await fetchAPI(`tacapi/v1/get-use-count/${tagName}`, true, false))["result"];
|
||||
}
|
||||
async function getUseCounts(tagNames) {
|
||||
return (await fetchAPI(`tacapi/v1/get-use-count-list?tags=${tagNames.join("&tags=")}`))["result"];
|
||||
}
|
||||
|
||||
// Sliding window function to get possible combination groups of an array
|
||||
|
||||
Reference in New Issue
Block a user