Fix - Issue #141
This commit is contained in:
commit
99e843db15
|
@ -2219,7 +2219,10 @@ class Productos(BaseModel):
|
||||||
.order_by(Productos.clave)
|
.order_by(Productos.clave)
|
||||||
.tuples()
|
.tuples()
|
||||||
)
|
)
|
||||||
value = max([int(v[0]) for v in values if v[0].isdigit()])
|
values = [int(v[0]) for v in values if v[0].isdigit()]
|
||||||
|
value = 0
|
||||||
|
if values:
|
||||||
|
value = max(values)
|
||||||
|
|
||||||
value = value or 0
|
value = value or 0
|
||||||
value += 1
|
value += 1
|
||||||
|
|
Loading…
Reference in New Issue