bugfix
This commit is contained in:
parent
c5fe11f3d0
commit
7903c00196
0
dataloader/README.md
Normal file → Executable file
0
dataloader/README.md
Normal file → Executable file
0
dataloader/database.png
Normal file → Executable file
0
dataloader/database.png
Normal file → Executable file
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 233 KiB |
@ -14,6 +14,8 @@ class CBObject:
|
|||||||
async def handle(self,ws):
|
async def handle(self,ws):
|
||||||
db = DBPools()
|
db = DBPools()
|
||||||
async with db.sqlorContext(self.db) as sor:
|
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)
|
info = await sor.I(self.tbl)
|
||||||
for rec in getRecord(ws):
|
for rec in getRecord(ws):
|
||||||
r = [ v for v in rec.values() if v is not None ]
|
r = [ v for v in rec.values() if v is not None ]
|
||||||
|
0
dataloader/macos/dataloader.spec
Normal file → Executable file
0
dataloader/macos/dataloader.spec
Normal file → Executable file
0
dataloader/table1.png
Normal file → Executable file
0
dataloader/table1.png
Normal file → Executable file
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 181 KiB |
0
dataloader/table2.png
Normal file → Executable file
0
dataloader/table2.png
Normal file → Executable file
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB |
2
dataloader/typeconv.py
Normal file → Executable file
2
dataloader/typeconv.py
Normal file → Executable file
@ -14,7 +14,7 @@ def conv(info, name, value):
|
|||||||
for f in fields:
|
for f in fields:
|
||||||
if f['name'] == name:
|
if f['name'] == name:
|
||||||
f = convfuncs.get(f['type'], None)
|
f = convfuncs.get(f['type'], None)
|
||||||
if f is None:
|
if f is None or value is None:
|
||||||
return value
|
return value
|
||||||
return f(value)
|
return f(value)
|
||||||
return value
|
return value
|
||||||
|
0
dataloader/ubuntu/dataloader.spec
Normal file → Executable file
0
dataloader/ubuntu/dataloader.spec
Normal file → Executable file
0
dataloader/windows/dataloader.spec
Normal file → Executable file
0
dataloader/windows/dataloader.spec
Normal file → Executable file
0
sqlor/const.py
Normal file → Executable file
0
sqlor/const.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user