feat(nexxa): taxonomía cerrada de estados y registro completo de eventos (motivo, hasta, quién), /resumen y /usos filtrable; 2.0.0 (P337/F1)
Tests ADN / test (push) Canceled after 0s
Tests ADN / test (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: GEMMA <noreply@gemma.dtic>
This commit is contained in:
co-authored by
Claude Opus 5.5
GEMMA
parent
08aa45117e
commit
82e56aad0e
@@ -110,9 +110,9 @@ module Nexxa
|
||||
E.archivo_guardar(E.ruta(clave), JSON.parse(fila['valor']))
|
||||
salida.puts(" ← #{clave}")
|
||||
end
|
||||
usos = E.sincronizado { E.con.exec('SELECT provider, identificador, individuo, evento, en FROM usos ORDER BY id').to_a }
|
||||
usos = E.sincronizado { E.con.exec('SELECT provider, identificador, individuo, evento, en, motivo, hasta FROM usos ORDER BY id').to_a }
|
||||
File.open("#{E::USOS_LOG}.tmp", 'w', 0o600) do |f|
|
||||
usos.each { |u| f.puts(u.merge('en' => Time.parse(u['en']).iso8601).to_json) }
|
||||
usos.each { |u| f.puts(E.normalizar_uso(u).to_json) }
|
||||
end
|
||||
File.rename("#{E::USOS_LOG}.tmp", E::USOS_LOG)
|
||||
salida.puts(" ← usos: #{usos.size} fila(s)")
|
||||
|
||||
Reference in New Issue
Block a user