Exemplo n.º 1
0
from __init__ import app, socketio

if __name__ == "__main__":
    socketio.run(app, host='0.0.0.0', port=5000)
Exemplo n.º 2
0
    cold_extraction_values['ThirdIndex'] = cold_values['data']['data'][
        'ThirdIndex']
    cold_extraction_values['NumberOfQueryAttributes'] = cold_values['data'][
        'data']['NumberOfQueryAttributes']
    cold_extraction_values['DateFormat'] = date_format
    cold_extraction_values['SendEmail'] = cold_values['data']['data'][
        'SendEmail']
    cold_extraction_values['YourEmail'] = cold_values['data']['data'][
        'YourEmail']
    import sys
    import io
    sys.path.append(COLD_UPLOAD_FOLDER)
    import ColdDataRetriever
    os.chdir(COLD_UPLOAD_FOLDER)
    import ColdDataRetriever
    x = ColdDataRetriever.initialize_config_and_execute(cold_extraction_values)
    logs.append("No errors encountered")
    logs.append("Cold Extraction is SUCCESSFUL !!")
    if logged_in_user in all_jobs:
        now = datetime.now()
        all_jobs[logged_in_user].append(
            "Finished On-Demand Extraction for user " + logged_in_user +
            " at: " + str(now.strftime("%d/%m/%Y, %H:%M:%S")))
    emit('processing-finished', json.dumps({'data': logs}), broadcast=True)


#JUST DO IT!!!
if __name__ == "__main__":
    # app.run(host="0.0.0.0",port="9000")
    socketio.run(app, host="0.0.0.0")
Exemplo n.º 3
0
from __init__  import create_app, db, socketio

with app.app_context():
    app = create_app()
db.create_all()
if __name__ == '__main__':
    socketio.run(host = '127.0.0.1', port = 5000, debug = True)
Exemplo n.º 4
0
from __init__ import create_app, socketio

app = create_app(debug=True)

if __name__ == '__main__':
    socketio.run(app)
Exemplo n.º 5
0
from __init__ import app, socketio

if __name__ == '__main__':
    socketio.run(app, debug=True, host='0.0.0.0')