Update pages/radiografias.py
Browse files- pages/radiografias.py +4 -2
pages/radiografias.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def show():
|
| 4 |
st.title("📸 Registro de Radiografías")
|
|
@@ -18,7 +20,7 @@ def show():
|
|
| 18 |
"fecha": str(fecha),
|
| 19 |
"descripcion": descripcion
|
| 20 |
}
|
| 21 |
-
|
| 22 |
datos_guardados = mostrar_datos_como_texto([radiografia]) # Append only the new entry
|
| 23 |
guardar_en_txt('radiografias.txt', datos_guardados)
|
| 24 |
st.success("Radiografía registrada con éxito.")
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import pandas as pd
|
| 3 |
+
from utils.data_manager import guardar_en_txt, cargar_desde_txt, mostrar_datos_como_texto, generar_pdf
|
| 4 |
|
| 5 |
def show():
|
| 6 |
st.title("📸 Registro de Radiografías")
|
|
|
|
| 20 |
"fecha": str(fecha),
|
| 21 |
"descripcion": descripcion
|
| 22 |
}
|
| 23 |
+
st.session_state.radiografias.append(radiografia)
|
| 24 |
datos_guardados = mostrar_datos_como_texto([radiografia]) # Append only the new entry
|
| 25 |
guardar_en_txt('radiografias.txt', datos_guardados)
|
| 26 |
st.success("Radiografía registrada con éxito.")
|