rewrite (settings): New types and bugfixes.

This commit is contained in:
2023-05-14 12:25:59 +03:00
parent 87874e1130
commit c5302adf66
3 changed files with 69 additions and 15 deletions

View File

@@ -70,8 +70,7 @@ class ModelData:
)
# If we didn't update any rows, create a new row
if not rows:
await model.table.fetch_or_create(**model._dict_from_id, **{cls._column: data})
...
await model.fetch_or_create(**model._dict_from_id(parent_id), **{cls._column: data})
if cls._cache is not None:
cls._cache[parent_id] = data