From 796c71b7f789cab566b65a752136de31457c427d Mon Sep 17 00:00:00 2001 From: henk717 Date: Fri, 31 Dec 2021 00:11:18 +0100 Subject: [PATCH] ANTemplate in Model Configs This commit exposes antemplates to the model config, this lets authors specify what kind of authors notes template they would like to use for their model. Users can still change it if they desire. --- aiserver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aiserver.py b/aiserver.py index 74256841..0ce0ca80 100644 --- a/aiserver.py +++ b/aiserver.py @@ -2104,6 +2104,10 @@ def loadmodelsettings(): vars.dynamicscan = js["dynamicscan"] if("formatoptns" in js): vars.formatoptns = js["formatoptns"] + if("antemplate" in js): + vars.setauthornotetemplate = js["antemplate"] + if(not vars.gamestarted): + vars.authornotetemplate = vars.setauthornotetemplate model_config.close() #==================================================================#