bugfix
parent
c5fe11f3d0
commit
7903c00196
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 233 KiB |
|
@ -14,6 +14,8 @@ class CBObject:
|
|||
async def handle(self,ws):
|
||||
db = DBPools()
|
||||
async with db.sqlorContext(self.db) as sor:
|
||||
delete_sql = "delete from %s" % self.tbl
|
||||
await sor.sqlExe(delete_sql, {})
|
||||
info = await sor.I(self.tbl)
|
||||
for rec in getRecord(ws):
|
||||
r = [ v for v in rec.values() if v is not None ]
|
||||
|
|
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 181 KiB |
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB |
|
@ -14,7 +14,7 @@ def conv(info, name, value):
|
|||
for f in fields:
|
||||
if f['name'] == name:
|
||||
f = convfuncs.get(f['type'], None)
|
||||
if f is None:
|
||||
if f is None or value is None:
|
||||
return value
|
||||
return f(value)
|
||||
return value
|
||||
|
|
Loading…
Reference in New Issue