Fix al actualizar contraseña de usuario
This commit is contained in:
parent
402f54f9c6
commit
b973fecaf3
|
@ -1385,8 +1385,8 @@ def crear_db(nombre):
|
|||
|
||||
|
||||
def _to_seafile(path_db, data):
|
||||
# ~ if DEBUG:
|
||||
# ~ return
|
||||
if DEBUG:
|
||||
return
|
||||
|
||||
_, filename = os.path.split(path_db)
|
||||
if SEAFILE_SERVER:
|
||||
|
|
|
@ -263,9 +263,9 @@ class Usuarios(BaseModel):
|
|||
|
||||
@classmethod
|
||||
def edit(self, values):
|
||||
print (values)
|
||||
id = int(values.pop('id'))
|
||||
try:
|
||||
values['contraseña'] = values.pop('contra')
|
||||
q = Usuarios.update(**values).where(Usuarios.id==id)
|
||||
result = {'ok': bool(q.execute())}
|
||||
except IntegrityError:
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
"tabla": "SATImpuestos",
|
||||
"datos": [
|
||||
{"key": "002", "name": "IVA", "tasa": 0.16, "activo": true, "default": true},
|
||||
{"key": "001", "name": "ISR", "tasa": 0.10, "tipo": "R", "activo": true},
|
||||
{"key": "002", "name": "IVA", "tasa": 0.0, "activo": true},
|
||||
{"key": "002", "name": "IVA", "tasa": 0.10, "tipo": "R", "activo": true},
|
||||
{"key": "002", "name": "IVA", "tasa": 0.106667, "tipo": "R", "activo": true},
|
||||
{"key": "000", "name": "Exento", "tipo": "E", "factor": "E", "activo": true}
|
||||
{"key": "001", "name": "ISR", "tasa": 0.10, "tipo": "R", "activo": false},
|
||||
{"key": "002", "name": "IVA", "tasa": 0.0, "activo": false},
|
||||
{"key": "002", "name": "IVA", "tasa": 0.10, "tipo": "R", "activo": false},
|
||||
{"key": "002", "name": "IVA", "tasa": 0.106667, "tipo": "R", "activo": false},
|
||||
{"key": "000", "name": "Exento", "tipo": "E", "factor": "E", "activo": false}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue