This commit is contained in:
yumoqing 2026-04-10 21:22:27 +08:00
parent 144f396017
commit 201989d230

View File

@ -7,6 +7,9 @@ from appPublic.timeUtils import curDateString, timestampstr
from accounting.consume import consume_accounting
from ahserver.serverenv import ServerEnv
def get_module_dbname(m):
retrun 'sage'
async def get_orgid_by_username(sor, username):
recs = await sor.R('users', {'username': username})
if len(recs):
@ -57,5 +60,7 @@ if __name__ == '__main__':
}
}
DBPools(databases)
env = ServerEnv()
env.get_module_dbname = get_module_dbname
asyncio.run(main())