mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 06:32:12 -03:00
refactor: enhance recipe fingerprint calculation and return detailed recipe information; remove unnecessary console logs in import managers
This commit is contained in:
@@ -56,7 +56,6 @@ export class DownloadManager {
|
||||
// Add source_path to metadata to track where the recipe was imported from
|
||||
if (this.importManager.importMode === 'url') {
|
||||
const urlInput = document.getElementById('imageUrlInput');
|
||||
console.log("urlInput.value", urlInput.value);
|
||||
if (urlInput && urlInput.value) {
|
||||
completeMetadata.source_path = urlInput.value;
|
||||
}
|
||||
|
||||
@@ -170,8 +170,6 @@ export class ImageProcessor {
|
||||
// Get recipe data from response
|
||||
this.importManager.recipeData = await response.json();
|
||||
|
||||
console.log('Recipe data:', this.importManager.recipeData);
|
||||
|
||||
// Check if we have an error message
|
||||
if (this.importManager.recipeData.error) {
|
||||
throw new Error(this.importManager.recipeData.error);
|
||||
@@ -184,11 +182,6 @@ export class ImageProcessor {
|
||||
throw new Error('No LoRA information found in this image');
|
||||
}
|
||||
|
||||
// Store generation parameters if available
|
||||
if (this.importManager.recipeData.gen_params) {
|
||||
console.log('Generation parameters found:', this.importManager.recipeData.gen_params);
|
||||
}
|
||||
|
||||
// Find missing LoRAs
|
||||
this.importManager.missingLoras = this.importManager.recipeData.loras.filter(
|
||||
lora => !lora.existsLocally
|
||||
|
||||
Reference in New Issue
Block a user