zcash-grant-system/backend/app.py

15 lines
350 B
Python
Executable File

# -*- coding: utf-8 -*-
"""Create an application instance."""
from grant.app import create_app
from grant.blockchain.bootstrap import send_bootstrap_data
app = create_app()
@app.before_first_request
def bootstrap_watcher():
try:
send_bootstrap_data()
except:
print('Failed to send bootstrap data, watcher must be offline')