diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-17 17:27:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 17:27:14 +0000 |
commit | 987c1f7d9f01ccce6868c1cad4ced3bdd541a594 (patch) | |
tree | 5f6f201eeca3997b4220c0a88f3d2a25d513cb1f | |
parent | 9fd6c1e3430f5947add23e2e94ac816c2546481c (diff) | |
parent | f5092164e8e452debc889475dbaa163e4f877fda (diff) | |
download | stable-diffusion-webui-gfx803-987c1f7d9f01ccce6868c1cad4ced3bdd541a594.tar.gz stable-diffusion-webui-gfx803-987c1f7d9f01ccce6868c1cad4ced3bdd541a594.tar.bz2 stable-diffusion-webui-gfx803-987c1f7d9f01ccce6868c1cad4ced3bdd541a594.zip |
Merge pull request #10483 from Iheuzio/syntax-search
Fix typo in syntax
-rw-r--r-- | modules/ui_extra_networks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 752cf2b8..27cb9807 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -171,7 +171,7 @@ class ExtraNetworksPage: # if this is true, the item must not be show in the default view, and must instead only be
# shown when searching for it
- serach_only = "/." in local_path or "\\." in local_path
+ search_only = "/." in local_path or "\\." in local_path
args = {
"style": f"'display: none; {height}{width}{background_image}'",
@@ -184,7 +184,7 @@ class ExtraNetworksPage: "save_card_preview": '"' + html.escape(f"""return saveCardPreview(event, {json.dumps(tabname)}, {json.dumps(item["local_preview"])})""") + '"',
"search_term": item.get("search_term", ""),
"metadata_button": metadata_button,
- "serach_only": " search_only" if serach_only else "",
+ "search_only": " search_only" if search_only else "",
}
return self.card_page.format(**args)
|