From ae3627cbe0e055693a2bb7241d9f6378003aac84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sun, 27 Mar 2022 01:22:28 +0000 Subject: [PATCH] use "cls" --- api/kiwi_vpn_api/db_new/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/db_new/user.py b/api/kiwi_vpn_api/db_new/user.py index 935d9a7..623640d 100644 --- a/api/kiwi_vpn_api/db_new/user.py +++ b/api/kiwi_vpn_api/db_new/user.py @@ -32,7 +32,7 @@ class User(UserBase, table=True): try: with Connection.session as db: - user = User.from_orm(UserCreate(**kwargs)) + user = cls.from_orm(UserCreate(**kwargs)) db.add(user) db.commit()