bugfix
This commit is contained in:
parent
144f396017
commit
201989d230
@ -7,6 +7,9 @@ from appPublic.timeUtils import curDateString, timestampstr
|
|||||||
from accounting.consume import consume_accounting
|
from accounting.consume import consume_accounting
|
||||||
from ahserver.serverenv import ServerEnv
|
from ahserver.serverenv import ServerEnv
|
||||||
|
|
||||||
|
def get_module_dbname(m):
|
||||||
|
retrun 'sage'
|
||||||
|
|
||||||
async def get_orgid_by_username(sor, username):
|
async def get_orgid_by_username(sor, username):
|
||||||
recs = await sor.R('users', {'username': username})
|
recs = await sor.R('users', {'username': username})
|
||||||
if len(recs):
|
if len(recs):
|
||||||
@ -57,5 +60,7 @@ if __name__ == '__main__':
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
DBPools(databases)
|
DBPools(databases)
|
||||||
|
env = ServerEnv()
|
||||||
|
env.get_module_dbname = get_module_dbname
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user