fix: correct insert method call to unpack data dict as keyword arguments in BaseView

This commit is contained in:
retoor 2025-01-02 19:32:44 +00:00
parent cc0fc11407
commit 35fe1b91d0

View File

@ -47,7 +47,7 @@ class BaseView(web.View):
def insert(self, table, data):
data['ip'] = self.ip
data['created'] = datetime.now()
return self.db[table].insert(data)
return self.db[table].insert(**data)
def find(self,table,data=None):
if not data: