mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
aeonfunding update for wownero
a lot more generic; a lot more configurable; UI goodness with accounting; wallet account support for ezmode
This commit is contained in:
parent
f473a4234e
commit
955de2544e
19 changed files with 361 additions and 173 deletions
|
@ -17,7 +17,7 @@ def create_app():
|
|||
global cache
|
||||
global bcrypt
|
||||
|
||||
from wowfunding.orm.connect import create_session
|
||||
from funding.orm.connect import create_session
|
||||
db_session = create_session()
|
||||
|
||||
app = Flask(__name__)
|
||||
|
@ -39,18 +39,18 @@ def create_app():
|
|||
|
||||
@login_manager.user_loader
|
||||
def load_user(_id):
|
||||
from wowfunding.orm.orm import User
|
||||
from funding.orm.orm import User
|
||||
return User.query.get(int(_id))
|
||||
|
||||
# session init
|
||||
from wowfunding.cache import JsonRedis, WowCache
|
||||
from funding.cache import JsonRedis, WowCache
|
||||
app.session_interface = JsonRedis(key_prefix=app.config['SESSION_PREFIX'], use_signer=False)
|
||||
cache = WowCache()
|
||||
|
||||
# import routes
|
||||
from wowfunding import routes
|
||||
from wowfunding import api
|
||||
from wowfunding.bin import utils_request
|
||||
from funding import routes
|
||||
from funding import api
|
||||
from funding.bin import utils_request
|
||||
|
||||
app.app_context().push()
|
||||
return app
|
||||
return app
|
Loading…
Add table
Add a link
Reference in a new issue