feat: store and display per-patient sync detail in historial
- Add detalle_json column to sync_wa_log via migration - guardar_sync_log() now stores doc, nombre, action, examenes count per patient - Historial table shows "Ver N" button that expands a row with patient list, action badge (Nuevo/Actualizado/Omitido) and exam count per patient Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
29b6aa4016
commit
e044f21e3e
@@ -14,6 +14,10 @@ def get_connection():
|
||||
|
||||
|
||||
def _migrate(conn):
|
||||
sync_cols = {r[1] for r in conn.execute("PRAGMA table_info(sync_wa_log)")}
|
||||
if "detalle_json" not in sync_cols:
|
||||
conn.execute("ALTER TABLE sync_wa_log ADD COLUMN detalle_json TEXT")
|
||||
|
||||
cols = {r[1] for r in conn.execute("PRAGMA table_info(envios)")}
|
||||
if "idrecepcion" not in cols:
|
||||
conn.execute("ALTER TABLE envios ADD COLUMN idrecepcion INTEGER")
|
||||
|
||||
Reference in New Issue
Block a user