删除id2file

This commit is contained in:
ping 2025-09-18 10:44:29 +08:00
parent 3c1a5e5020
commit e248b1c3e5

View File

@ -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