Files changed (1) hide show
  1. all_models2.py +2 -1
all_models2.py CHANGED
@@ -109,7 +109,8 @@ def update_tag(models_plus_tags,list_new_tag):
109
  from operator import itemgetter
110
 
111
  #models = find_model_list("Yntec", [], "", "last_modified", 20)
112
- models , models_plus_tags = find_model_list("John6666", ["stable-diffusion-xl"], "", "last_modified", 2000)
 
113
  #tags_plus_models = orga_tag(clas_tags(models_plus_tags,2))
114
  tags_plus_models = orga_tag(clas_tags(sorted(models_plus_tags, key=itemgetter(0)),2))
115
  list_new=tag_new(models,40)
 
109
  from operator import itemgetter
110
 
111
  #models = find_model_list("Yntec", [], "", "last_modified", 20)
112
+ models = find_model_list("John6666", ["stable-diffusion-xl"], "", "last_modified", 2000)
113
+ models_plus_tags = models.copy() # or deepcopy
114
  #tags_plus_models = orga_tag(clas_tags(models_plus_tags,2))
115
  tags_plus_models = orga_tag(clas_tags(sorted(models_plus_tags, key=itemgetter(0)),2))
116
  list_new=tag_new(models,40)