global accessor
This commit is contained in:
@@ -41,6 +41,10 @@ def get_total_dana_by_level(level,kode):
|
||||
#========================================================
|
||||
# MAIN ROUTE
|
||||
#========================================================
|
||||
@main.context_processor
|
||||
def inject_config():
|
||||
return dict(api_base_url=main.config['API_BASE_URL'])
|
||||
|
||||
@main.route('/')
|
||||
def index():
|
||||
with get_connection() as conn:
|
||||
|
||||
Reference in New Issue
Block a user