From dad0f2ac2eebfddca5aaca6c2aa938de114a88c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Thu, 19 Sep 2024 16:32:08 +0200 Subject: [PATCH 1/2] also use schema in memodel example Change-Id: I0d0c31500eb7e5d09bf0489ce3e29cd3e92f1486 --- examples/others/memodel/memodel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/others/memodel/memodel.py b/examples/others/memodel/memodel.py index 3732318f..be7a3e3f 100644 --- a/examples/others/memodel/memodel.py +++ b/examples/others/memodel/memodel.py @@ -370,7 +370,8 @@ def update_memodel( ) # update memodel resource - forge.update(memodel_r) + schema_id = forge._model.schema_id("MEModel") + forge.update(memodel_r, chema_id=schema_id) if __name__ == "__main__": From 99d18536e822de6c709a592fe2d148f71264eaff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Thu, 19 Sep 2024 16:47:32 +0200 Subject: [PATCH 2/2] fix typo Change-Id: Ie9db87f2055d87390fec97c2271c4c6c8f60235a --- examples/others/memodel/memodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/others/memodel/memodel.py b/examples/others/memodel/memodel.py index be7a3e3f..cee39e76 100644 --- a/examples/others/memodel/memodel.py +++ b/examples/others/memodel/memodel.py @@ -371,7 +371,7 @@ def update_memodel( # update memodel resource schema_id = forge._model.schema_id("MEModel") - forge.update(memodel_r, chema_id=schema_id) + forge.update(memodel_r, schema_id=schema_id) if __name__ == "__main__":