Skip to content

Commit

Permalink
Sin variables no usadas
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Mar 15, 2023
1 parent e9265cc commit ade3886
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions app/controllers/sivel2_gen/conteos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def fasol_banco
end
enctabla = et

i = 1
cuerpotabla = []
filas.each do |f|
ft = [f]
Expand Down Expand Up @@ -156,7 +155,6 @@ def self.calcula_fasol_banco_detalle(preg)
.where(nombre: preg)
return if c.count == 0

reg = c.take
condreg = "sub.region = '#{preg}'"
end
sub = "SELECT DISTINCT caso.id AS caso_id, "\
Expand Down
6 changes: 3 additions & 3 deletions app/models/usuario.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class Usuario < ActiveRecord::Base
include Cor1440Gen::Concerns::Models::Usuario

belongs_to :tdocumento,
class_name: "Msip::Tdocumento",,
validate: true,
optional: false
class_name: "Msip::Tdocumento",
validate: true,
optional: false

campofecha_localizado :fechanac

Expand Down
3 changes: 1 addition & 2 deletions lib/guiones/importa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,6 @@ def sin_presponsable(rpr)

# FAMILIAR
fam = r["FAMILIAR"]
rfam = {}
if fam
menserror = ""
fa = Msip::ImportaHelper.separa_apellidos_nombres(fam, menserror)
Expand All @@ -884,7 +883,7 @@ def sin_presponsable(rpr)
c = Sivel2Gen::Caso.create!(rc)
rv[:id_caso] = c.id
rv[:id_persona] = p.id
v = Sivel2Gen::Victima.create!(rv)
Sivel2Gen::Victima.create!(rv)
if ru[:id_departamento]
ru[:id_caso] = c.id
ru[:id_pais] = 170
Expand Down
5 changes: 2 additions & 3 deletions lib/guiones/importavicini.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Dominio público de acuerdo a la legislación colombiana.
# [email protected] 2022

u = Usuario.where(nusuario: "vtamara").take || Usuario.take
#u = Usuario.where(nusuario: "vtamara").take || Usuario.take

require "csv"

Expand Down Expand Up @@ -92,7 +92,6 @@ def a_mayusculas(texto)
r["NOMBRE DEL SERVIDOR"], menserr
)
nombres = sep[0]
apellidos = sep[1]
# puts "OJO nombres=#{nombres}, apellidos=#{apellidos}"
if menserr != ""
puts "#{nvic}:#{nreg}: *** #{menserr}"
Expand Down Expand Up @@ -120,7 +119,7 @@ def a_mayusculas(texto)
numerodocumento: r["CEDULA"],
sexo: sexo,
)
v = Sivel2Gen::Victima.create(
Sivel2Gen::Victima.create(
anotaciones: r["NO PERSONAS"],
id_persona: p.id,
id_caso: c.id,
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/heb412_gen/control_acceso_plantillahcm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ControlAccesoPlantillahcmTest < ActionDispatch::IntegrationTest
sign_in current_usuario
skip
assert_difference "Heb412Gen::Plantillahcm.count" do
plan = Heb412Gen::Plantillahcm.create!(PRUEBA_PLANTILLAHCM)
Heb412Gen::Plantillahcm.create!(PRUEBA_PLANTILLAHCM)
end
end
# Autenticado como operador con grupo Analista de Casos
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/heb412_gen/control_acceso_plantillahcr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ControlAccesoPlantillahcrTest < ActionDispatch::IntegrationTest
sign_in current_usuario
skip
assert_difference "Heb412Gen::Plantillahcr.count" do
plan = Heb412Gen::Plantillahcr.create!(PRUEBA_PLANTILLAHCR)
Heb412Gen::Plantillahcr.create!(PRUEBA_PLANTILLAHCR)
end
end
# Autenticado como operador con grupo Analista de Casos
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/msip/control_acceso_basicas_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def crear_registro(modelo, basica)

modulo_str = basica[0] + "::" + basica[1].capitalize
modelo = modulo_str.constantize
muestra = modelo.all.sample
#muestra = modelo.all.sample

# No autenticado

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def crear_registro(modelo, basica)

modulo_str = basica[0] + "::" + basica[1].capitalize
modelo = modulo_str.constantize
muestra = modelo.all.sample
# muestra = modelo.all.sample

# No autenticado

Expand Down

0 comments on commit ade3886

Please sign in to comment.