[Fix] Compound Grouping, Identity prediction of enviFormer, Setting params (#337)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#337
This commit is contained in:
2026-02-20 10:14:28 +13:00
parent 0ff046363c
commit d2c2e643cb
8 changed files with 43 additions and 20 deletions

View File

@ -1115,13 +1115,16 @@ class SettingManager(object):
expansion_scheme: ExpansionSchemeChoice = ExpansionSchemeChoice.BFS,
):
new_s = Setting()
# Clean for potential XSS
new_s.name = nh3.clean(name, tags=s.ALLOWED_HTML_TAGS).strip()
new_s.description = nh3.clean(description, tags=s.ALLOWED_HTML_TAGS).strip()
new_s.max_nodes = max_nodes
new_s.max_depth = max_depth
new_s.model = model
new_s.model_threshold = model_threshold
new_s.expansion_scheme = expansion_scheme
new_s.save()