Fix passed argument to pac
This commit is contained in:
parent
64adba1588
commit
85e58c2728
|
@ -335,7 +335,7 @@ class PACComercioDigital(object):
|
|||
'Host': host,
|
||||
'Connection' : 'Keep-Alive',
|
||||
}
|
||||
data = {'usr': data['rfc'], 'pwd': data['password']}
|
||||
data = {'usr': data['user'], 'pwd': data['pass']}
|
||||
try:
|
||||
result = requests.get(url, params=data, headers=headers, timeout=TIMEOUT)
|
||||
except ConnectionError as e:
|
||||
|
|
|
@ -10488,10 +10488,6 @@ def _migrate_cert(rfc):
|
|||
conectar(args)
|
||||
log.info('Exportando certificados...')
|
||||
|
||||
obj = Certificado.get(Certificado.es_fiel==False)
|
||||
cert = utils.SATCertificate
|
||||
cert.save_cert(obj)
|
||||
|
||||
auth = Emisor.get_auth()
|
||||
data = {
|
||||
'lst_pac': 'finkok',
|
||||
|
@ -10500,6 +10496,10 @@ def _migrate_cert(rfc):
|
|||
}
|
||||
Configuracion.add(data)
|
||||
|
||||
obj = Certificado.get(Certificado.es_fiel==False)
|
||||
cert = utils.SATCertificate
|
||||
cert.save_cert(obj)
|
||||
|
||||
desconectar()
|
||||
log.info('Proceso terminado correctamente...')
|
||||
return
|
||||
|
|
|
@ -40,6 +40,7 @@ webix.ready(function(){
|
|||
var value = data.json();
|
||||
$$("title_login").setHTML(value);
|
||||
})
|
||||
$$("txt_rfc").focus();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue