home · contact · privacy
Minor variable name change for better semantical precision. master
authorChristian Heller <c.heller@plomlompom.de>
Thu, 13 Feb 2025 02:45:12 +0000 (03:45 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 13 Feb 2025 02:45:12 +0000 (03:45 +0100)
src/run.py
src/templates/_macros.tmpl
src/templates/edit_structured.tmpl

index 351e1faa5bc554cf8c9de988e5117792ae678fd6..e27a438441bcd8304bee7e4837de9fc5a6a2e12c 100755 (executable)
@@ -469,21 +469,21 @@ class Handler(PlomHttpHandler):
                     continue
                 wealth_before = accounts_before[path].wealth
                 wealth_after = accounts_after[path].wealth
-                directly_set = full_name == path
+                direct_target = full_name == path
                 diff = {
                     c: a for c, a in (wealth_after - wealth_before
                                       ).moneys.items()
                     if a != 0
-                    or (directly_set
+                    or (direct_target
                         and c in booking.account_changes[full_name].moneys)}
-                if diff or directly_set:
+                if diff or direct_target:
                     displayed_currencies = set(diff.keys())
                     for wealth in wealth_before, wealth_after:
                         wealth.ensure_currencies(displayed_currencies)
                         wealth.purge_currencies_except(displayed_currencies)
                     node: dict[str, Any] = {
                             'name': path,
-                            'directly_set': directly_set,
+                            'direct_target': direct_target,
                             'wealth_before': wealth_before.moneys,
                             'wealth_diff': diff,
                             'wealth_after': wealth_after.moneys,
index 85f3b144b47c7e151db98e9604b915cb76b2584e..bc98cc1f332da45f91294bf9ca24f84ad4cffe4d 100644 (file)
@@ -123,7 +123,7 @@ function taint() {
 
 {% macro booking_balance_account_with_children(node) %}
 <tr class="alternating">
-<td {% if node.directly_set %}class="directly_set"{% endif %}>{{node.name}}{% if node.children %}:{% endif %}</td>
+<td {% if node.direct_target %}class="direct_target"{% endif %}>{{node.name}}{% if node.children %}:{% endif %}</td>
 <td class="money">
 <table>
 {% for curr, amt in node.wealth_before.items() %}
index 43a1858484e9f18d4d277b96da26d46b96c84774..ad7450ebbd074dba65384208562cf5de121273ef 100644 (file)
@@ -8,7 +8,7 @@
 input.date_input, input.number_input { font-family: monospace; }
 input.number_input { text-align: right; }
 input.date_input { margin-right: 0.1em; }
-td.directly_set { font-weight: bold; }
+td.direct_target { font-weight: bold; }
 {% endblock %}