Josedcape commited on
Commit
5bd3923
·
verified ·
1 Parent(s): 69ca589

Update pages/radiografias.py

Browse files
Files changed (1) hide show
  1. pages/radiografias.py +4 -2
pages/radiografias.py CHANGED
@@ -1,4 +1,6 @@
1
- from utils.data_manager import guardar_en_txt, cargar_desde_txt, mostrar_datos_como_texto
 
 
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
- if st.session_state.radiografias.append(radiografia)
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.")