aboutsummaryrefslogtreecommitdiff
path: root/modules/api/api.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-14 09:56:59 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-14 09:56:59 +0300
commita95f1353089bdeaccd7c266b40cdd79efedfe632 (patch)
tree03f8e733c89436f31526b513a6435a9a4d9174c5 /modules/api/api.py
parent82725f0ac439f7e3b67858d55900e95330bbd326 (diff)
change hash to sha256
Diffstat (limited to 'modules/api/api.py')
-rw-r--r--modules/api/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 5767ba90..9814bbc2 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -371,7 +371,7 @@ class Api:
return upscalers
def get_sd_models(self):
- return [{"title":x.title, "model_name":x.model_name, "hash":x.hash, "filename": x.filename, "config": find_checkpoint_config(x)} for x in checkpoints_list.values()]
+ return [{"title": x.title, "model_name": x.model_name, "hash": x.shorthash, "sha256": x.sha256, "filename": x.filename, "config": find_checkpoint_config(x)} for x in checkpoints_list.values()]
def get_hypernetworks(self):
return [{"name": name, "path": shared.hypernetworks[name]} for name in shared.hypernetworks]