add latent history

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-10-08 09:23:16 -04:00
parent a3a177277a
commit 2e08a26d53
13 changed files with 145 additions and 65 deletions
+7
View File
@@ -158,3 +158,10 @@ def post_pnginfo(req: models.ReqImageInfo):
params = infotext.parse(geninfo)
script_callbacks.infotext_pasted_callback(geninfo, params)
return models.ResImageInfo(info=geninfo, items=items, parameters=params)
def get_history():
return shared.history.list
def post_history(req: models.ReqHistory):
shared.history.index = shared.history.find(req.name)
return shared.history.index