Actualizar backend/main.py
This commit is contained in:
@@ -276,6 +276,32 @@ def get_cobranza_detalle_todos(ano: int, mes: int, sectorista: str = "TODOS"):
|
|||||||
raise HTTPException(status_code=500, detail=str(e))
|
raise HTTPException(status_code=500, detail=str(e))
|
||||||
|
|
||||||
|
|
||||||
|
# ── ESTADO / OBSERVACIONES POR ALUMNO (Cobranza) ───────────────────────────
|
||||||
|
@app.get("/api/alumno/estado")
|
||||||
|
def get_alumno_estado(matricula: str):
|
||||||
|
try:
|
||||||
|
return services.alumno_estado_obtener(matricula)
|
||||||
|
except Exception as e:
|
||||||
|
raise HTTPException(status_code=500, detail=str(e))
|
||||||
|
|
||||||
|
@app.post("/api/alumno/estado/guardar")
|
||||||
|
def post_alumno_estado(payload: dict = Body(...)):
|
||||||
|
try:
|
||||||
|
return services.alumno_estado_guardar(
|
||||||
|
payload.get("matricula",""),
|
||||||
|
payload.get("estado","EN CURSO"),
|
||||||
|
payload.get("observaciones",[]),
|
||||||
|
payload.get("usuario"))
|
||||||
|
except Exception as e:
|
||||||
|
raise HTTPException(status_code=500, detail=str(e))
|
||||||
|
|
||||||
|
@app.get("/api/alumnos/por-retirar")
|
||||||
|
def get_alumnos_por_retirar():
|
||||||
|
try:
|
||||||
|
return services.alumnos_por_retirar()
|
||||||
|
except Exception as e:
|
||||||
|
raise HTTPException(status_code=500, detail=str(e))
|
||||||
|
|
||||||
# ── USUARIOS ───────────────────────────────────────────────────────────────
|
# ── USUARIOS ───────────────────────────────────────────────────────────────
|
||||||
@app.get("/api/usuarios")
|
@app.get("/api/usuarios")
|
||||||
def get_usuarios():
|
def get_usuarios():
|
||||||
|
|||||||
Reference in New Issue
Block a user