fix: correctly extract exception amount on fees page
This commit is contained in:
7
app.py
7
app.py
@@ -51,10 +51,11 @@ def fees():
|
||||
|
||||
# Check for exception
|
||||
norm_period = normalize(m)
|
||||
override = exceptions.get((norm_name, norm_period))
|
||||
ex_data = exceptions.get((norm_name, norm_period))
|
||||
override_amount = ex_data["amount"] if ex_data else None
|
||||
|
||||
if override is not None and override != fee:
|
||||
cell = f"{override} ({fee}) CZK ({count})" if count > 0 else f"{override} ({fee}) CZK"
|
||||
if override_amount is not None and override_amount != fee:
|
||||
cell = f"{override_amount} ({fee}) CZK ({count})" if count > 0 else f"{override_amount} ({fee}) CZK"
|
||||
is_overridden = True
|
||||
else:
|
||||
cell = f"{fee} CZK ({count})" if count > 0 else "-"
|
||||
|
||||
Reference in New Issue
Block a user