Look for string in string collection

This commit is contained in:
Andrea Lanfranchi 2024-02-21 15:14:01 +01:00
parent 4713572a24
commit adf6328cd9
No known key found for this signature in database
GPG Key ID: 2D623A60BB279915

View File

@ -40,7 +40,7 @@ def build_model(model_name: str) -> Any:
if not "model_obj" in globals(): if not "model_obj" in globals():
model_obj = {} model_obj = {}
if not model_name in model_obj: if not model_name in model_obj.keys():
model = models.get(model_name) model = models.get(model_name)
if model: if model:
model = model() model = model()