fix import error
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from flask import current_app
|
||||
|
||||
|
||||
def with_app_context(func):
|
||||
def wrapper(*args, **kwargs):
|
||||
with current_app.app_context():
|
||||
return func(*args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
Reference in New Issue
Block a user