main #34

Merged
charles merged 191 commits from main into prod 2025-11-19 16:18:39 +08:00
3 changed files with 1 additions and 15 deletions
Showing only changes of commit 26f6b96971 - Show all commits

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,
)
from aiohttp.web_response import Response, StreamResponse
from id2file import getFilenameFromId
# from id2file import getFilenameFromId
def imageUp(img):

View File

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