29.03.26
This commit is contained in:
@@ -459,9 +459,13 @@ class Valuation(ValuationBase, ModelView):
|
||||
"""
|
||||
|
||||
cursor.execute(sql)
|
||||
last_total, last_variation = cursor.fetchone()
|
||||
row = cursor.fetchone()
|
||||
if not row:
|
||||
return Decimal(0), Decimal(0)
|
||||
|
||||
return last_total, last_variation
|
||||
last_total, last_variation = row
|
||||
|
||||
return last_total or Decimal(0), last_variation or Decimal(0)
|
||||
|
||||
class ValuationLine(ValuationBase, ModelView):
|
||||
"Last Valuation"
|
||||
|
||||
Reference in New Issue
Block a user