Fix al actualizar contraseña de usuario

This commit is contained in:
Mauricio Baeza 2017-12-10 15:51:22 -06:00
parent 402f54f9c6
commit b973fecaf3
3 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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}
]
},
{