删除id2file
This commit is contained in:
parent
3c1a5e5020
commit
e248b1c3e5
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
from sqlor.dbpools import runSQL
|
|
||||||
|
|
||||||
async def getFilenameFromId(idstr:str) -> str:
|
|
||||||
sql = "select * from kvobjects where id='%s'" % idstr
|
|
||||||
recs = await runSQL('homedata',sql)
|
|
||||||
if recs is None:
|
|
||||||
return None
|
|
||||||
if len(recs) == 0:
|
|
||||||
return None
|
|
||||||
return recs[0].name
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user