aboutsummaryrefslogtreecommitdiff
path: root/modules/ui_extra_networks_checkpoints.py
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-06-02 16:12:24 -0400
committerGitHub <noreply@github.com>2023-06-02 16:12:24 -0400
commit9009e25cb1a7864127f6b2dc7329bd4178ad3a5d (patch)
tree1836ece8f108b7160e63e5a3cb952e95cb4734e0 /modules/ui_extra_networks_checkpoints.py
parent4cc0cede6d4cae74779b1b4cfc4b7bf7bfdaeaa6 (diff)
Apply suggestions from code review
Co-authored-by: Aarni Koskela <akx@iki.fi>
Diffstat (limited to 'modules/ui_extra_networks_checkpoints.py')
-rw-r--r--modules/ui_extra_networks_checkpoints.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py
index d366b9ce..8b9ab71b 100644
--- a/modules/ui_extra_networks_checkpoints.py
+++ b/modules/ui_extra_networks_checkpoints.py
@@ -24,7 +24,8 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
"search_term": self.search_terms_from_path(checkpoint.filename) + " " + (checkpoint.sha256 or ""),
"onclick": '"' + html.escape(f"""return selectCheckpoint({json.dumps(name)})""") + '"',
"local_preview": f"{path}.{shared.opts.samples_format}",
- "sort_keys": {**self.get_sort_keys(checkpoint.filename), **{'default': index}},
+ "sort_keys": {'default': index, **self.get_sort_keys(checkpoint.filename)},
+
}
def allowed_directories_for_previews(self):