13 lines
422 B
Python
13 lines
422 B
Python
# Servicio UI: manejo de forms web
|
|
from flask import render_template, request
|
|
from App.Services.logic_service import run_etl
|
|
|
|
@app.route('/', methods=['GET', 'POST'])
|
|
def index():
|
|
if request.method == 'POST':
|
|
project = request.form['project']
|
|
task = request.form['task']
|
|
# Trigger ETL manual
|
|
run_etl(project, task)
|
|
return "ETL ejecutado"
|
|
return render_template('index.html') |