main #34
@ -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
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user