first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# 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')
|
||||
Reference in New Issue
Block a user