Actualizar backend/main.py
This commit is contained in:
@@ -74,6 +74,14 @@ def get_ocupabilidad(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.get("/api/ocupabilidad/alumnos")
|
||||
def get_ocupabilidad_alumnos(num_indice: str = Query(...)):
|
||||
try:
|
||||
return services.ocupabilidad_alumnos(num_indice)
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
# ── VENTAS ─────────────────────────────────────────────────────────────────
|
||||
@app.get("/api/ventas")
|
||||
def get_ventas(ano: int = Query(...), mes: int = Query(...),
|
||||
|
||||
Reference in New Issue
Block a user