This commit is contained in:
hrx 2025-09-18 14:54:50 +08:00
commit 26f6b96971
3 changed files with 1 additions and 15 deletions

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

View File

@ -9,7 +9,7 @@ from aiohttp.web_exceptions import (
HTTPNotFound, HTTPNotFound,
) )
from aiohttp.web_response import Response, StreamResponse from aiohttp.web_response import Response, StreamResponse
from id2file import getFilenameFromId # from id2file import getFilenameFromId
def imageUp(img): def imageUp(img):

View File

@ -44,7 +44,6 @@ from appPublic.rc4 import unpassword, password
from ahserver.filedownload import path_encode from ahserver.filedownload import path_encode
from imgThumb import thumb from imgThumb import thumb
from idfile import idFileDownload
from myauth import MyAuthAPI from myauth import MyAuthAPI
from rf import getPublicKey, getI18nMapping from rf import getPublicKey, getI18nMapping
from version import __version__ from version import __version__
@ -133,7 +132,6 @@ if __name__ == '__main__':
server = ConfiguredServer(auth_klass=MyAuthAPI, workdir=workdir) server = ConfiguredServer(auth_klass=MyAuthAPI, workdir=workdir)
rf = RegisterFunction() rf = RegisterFunction()
rf.register('makeThumb',thumb) rf.register('makeThumb',thumb)
rf.register('idFileDownload',idFileDownload)
rf.register('getPublicKey', getPublicKey) rf.register('getPublicKey', getPublicKey)
rf.register('getI18nMapping', getI18nMapping) rf.register('getI18nMapping', getI18nMapping)
g = ServerEnv() g = ServerEnv()