Scanner, Downloaders, Providers
This commit is contained in:
1 parent
7837adec1d
commit
09fed4ca63
27 files changed
+855
-217
No files matched your search
@@ -24,7 +24,7 @@ def get_session(engine = None):
|
||||
return scoped_session(sessionmaker(bind = engine))
|
||||
|
||||
def get_engine():
|
||||
return create_engine(Env.get('db_path'), echo = False)
|
||||
return create_engine(Env.get('db_path')+'?check_same_thread=False', echo = False)
|
||||
|
||||
def addView(route, func, static = False):
|
||||
web.add_url_rule(route + ('' if static else '/'), endpoint = route if route else 'index', view_func = func)
|
||||
|
||||
Reference in new issue
Block a user