diff --git a/source/app/main.py b/source/app/main.py index 50ce137..1f96e84 100644 --- a/source/app/main.py +++ b/source/app/main.py @@ -61,6 +61,7 @@ session_options = { 'session.type': 'file', 'session.cookie_expires': True, 'session.httponly': True, + 'session.secure': True, 'session.data_dir': PATH_SESSIONS['data'], 'session.lock_dir': PATH_SESSIONS['lock'], } diff --git a/source/app/models/main.py b/source/app/models/main.py index e7a0143..5fe3bd4 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -5467,10 +5467,6 @@ def _importar_facturas(rows): detalles = row.pop('detalles') impuestos = row.pop('impuestos') cliente = row.pop('cliente') - - if cliente['rfc'] == 'VSM960610AC0': - cliente['slug'] = 'vf_servicios_mexicana,_s.a._de_c.v.' - row['cliente'] = Socios.get(**cliente) with database_proxy.atomic() as txn: if _existe_factura(row):