From 8d0817b30fe7e5ea3e8b23347e52e0175f8de15b Mon Sep 17 00:00:00 2001 From: Kristjan Eimre Date: Wed, 20 Nov 2024 09:43:29 +0100 Subject: [PATCH] Update aiida_restapi/models.py Co-authored-by: Alexander Goscinski --- aiida_restapi/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiida_restapi/models.py b/aiida_restapi/models.py index 60b331f..a5c3222 100644 --- a/aiida_restapi/models.py +++ b/aiida_restapi/models.py @@ -304,7 +304,7 @@ def from_orm(cls, orm_entity: orm.Group) -> orm.Group: orm_entity.user_id = query.dict()[0]["fields"]["user_id"] orm_entity.time = query.dict()[0]["fields"]["time"] - return super().from_orm(obj) + return super().from_orm(orm_entity) class Group_Post(AiidaModel):