chellow 1761322486.0.0__py3-none-any.whl → 1761338924.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of chellow might be problematic. Click here for more details.

@@ -688,8 +688,13 @@ def _process_period(
688
688
 
689
689
  for elname, val_elem in val_elems.items():
690
690
  for part_name, part in val_elem["parts"].items():
691
- virtual_part = part.get("virtual")
692
- actual_part = part.get("actual")
691
+ if part_name == "gbp":
692
+ default = 0
693
+ else:
694
+ default = None
695
+ virtual_part = part.get("virtual", default)
696
+ actual_part = part.get("actual", default)
697
+
693
698
  if isinstance(virtual_part, set) and len(virtual_part) == 1:
694
699
  virtual_part = next(iter(virtual_part))
695
700
  if isinstance(actual_part, set) and len(actual_part) == 1:
@@ -146,9 +146,8 @@
146
146
  {% for elem, diff in elements %}
147
147
  <td style="text-align: right;">
148
148
  {% if elem in data.elements %}
149
- {% set val = data.elements[elem]['parts']['gbp']['difference'] %}
150
149
  {% if val is not none %}
151
- {{"{:0,.2f}".format(val)}}
150
+ {{"{:0,.2f}".format(data.elements[elem]['parts']['gbp']['difference'])}}
152
151
  {% endif %}
153
152
  {% endif %}
154
153
  </td>
@@ -133,15 +133,15 @@
133
133
  <th>Actual</th>
134
134
  <th>Virtual</th>
135
135
  <th>Difference</th>
136
- <th>Passed</th>
136
+ <th>Status</th>
137
137
  </tr>
138
138
  </thead>
139
139
  <tbody>
140
140
  <tr>
141
141
  <td>gbp</td>
142
+ {% set part = parts['gbp'] %}
142
143
  {% for k in ('actual', 'virtual', 'difference') %}
143
144
  <td style="text-align: right;">
144
- {% set part = parts['gbp'] %}
145
145
  {% if k in part %}
146
146
  {% set val = part[k] %}
147
147
  {% else %}
@@ -155,6 +155,7 @@
155
155
  {% endif %}
156
156
  </td>
157
157
  {% endfor %}
158
+ <td>{{part['passed']}}</td>
158
159
  </tr>
159
160
  {% for part_name, part in parts.items()|sort %}
160
161
  {% if part_name != 'gbp' %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chellow
3
- Version: 1761322486.0.0
3
+ Version: 1761338924.0.0
4
4
  Summary: Web Application for checking UK energy bills.
5
5
  Project-URL: Homepage, https://github.com/WessexWater/chellow
6
6
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
@@ -78,7 +78,7 @@ chellow/gas/transportation.py,sha256=uWFh0v-ViA02nH9Vof9JG3PiyAPXwhYZ1SvPxuzsQ0I
78
78
  chellow/gas/views.py,sha256=GeCvi6BGTUN7bu7sVkypNckwG3Crl6AbUcRob9qMi0E,59733
79
79
  chellow/reports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
80
  chellow/reports/report_109.py,sha256=Exb-FQ5f70-ier_h15CgHGysQ7vJ7k3gFZ1001zM3iM,11171
81
- chellow/reports/report_111.py,sha256=lI-d-tT3GMfZzKpCtgaR7o5ySaDFOmD4qc9CFfr8wvY,26314
81
+ chellow/reports/report_111.py,sha256=I1a6ajORfxDJNdijHGm728Xx5MfSHLSRgWtA_ohxax4,26445
82
82
  chellow/reports/report_169.py,sha256=wortJyvgXTrnjjXhLzqwaksKKu63K5IgdzU5f4SkHMI,9246
83
83
  chellow/reports/report_181.py,sha256=ypfYWYVNC1X2fMlJyDzwNiNTTRrpPW49DirXE_xDKa0,4958
84
84
  chellow/reports/report_183.py,sha256=fGONpKEIXTqIT_3dE5jZKBIesWPgLq-chHO6X22dIv0,8768
@@ -146,13 +146,13 @@ chellow/templates/object_summary.html,sha256=VGCAAYcWTzgNfL0mxEef2Fa8dP3FcBhzj0f
146
146
  chellow/templates/rate_server.html,sha256=SezuwdKhHRZ00-R_S6ttKiZ-nvRpwozV9QcIMf9StG8,5360
147
147
  chellow/templates/report_run.html,sha256=O_wjIu43S-mKVyZyku3dJJdvyck3rAgEdhw59TsCcK0,4040
148
148
  chellow/templates/report_run_asset_comparison.html,sha256=VYCCUmIC7Mfe7uuaAHb6ihiK6zsqeTlQbzgtzLqR3zg,2305
149
- chellow/templates/report_run_bill_check.html,sha256=E8CkzLOg0fN0xvVpUp79SNh8-nT0aFVrVgHK2FuMiZQ,4586
149
+ chellow/templates/report_run_bill_check.html,sha256=c7lHmq0l9GMBVXdgWVbLibS1vudCh8znLnD8COdZO3I,4558
150
150
  chellow/templates/report_run_ecoes_comparison.html,sha256=EYjmdiQ14lt_CW7e6mdyQYec1t-rg8g85wFb1757YpI,4812
151
151
  chellow/templates/report_run_g_bill_check.html,sha256=tOXl_mjR__foYKiOYflJbK-459actAtjzv8rfuL3TwM,4851
152
152
  chellow/templates/report_run_missing_e_bills.html,sha256=l5idQhfaNhMvvzIRv-iqCpeDnYl_wgs6-mZMBOmuyR8,2447
153
153
  chellow/templates/report_run_monthly_duration_org.html,sha256=gGNGJ4Q50q4BtIMi98rhO-7NqRHcsFUmbj2qzeOLejw,1713
154
154
  chellow/templates/report_run_row.html,sha256=bmtcdqJaS1CXpL0i8PuqvmeF98jKNYX5-mnQu-OuDKQ,3791
155
- chellow/templates/report_run_row_bill_check.html,sha256=EDDIgtPbEtjjrSEw5wpuPVor8o-M7aO0fN7yu1WZ8mY,6482
155
+ chellow/templates/report_run_row_bill_check.html,sha256=QXhPXRZLuFGfWlA93SUIW3LUIYVJOyzV662k5UTmoOU,6515
156
156
  chellow/templates/report_run_row_g_bill_check.html,sha256=2Ym9mkwvA_DGDrgktDDwXQXlUK7tR2aR3gp3KUqMLoI,7017
157
157
  chellow/templates/report_run_supply_contacts.html,sha256=JNzwz9M6qbLRDMkCzFCxxANapUer5klxo7t5a48nAzg,2117
158
158
  chellow/templates/report_runs.html,sha256=ecoIkl2WtfYtifiTxnslmpMGYYGVQW-CVSBpqhXyiE4,1131
@@ -400,6 +400,6 @@ chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBe
400
400
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
401
401
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
402
402
  chellow/templates/reports/channel_snags.html,sha256=_aAgFgMlTkK2HuKFU8YisAIcUYfg6Hqhgyf5MZpdK8c,2629
403
- chellow-1761322486.0.0.dist-info/METADATA,sha256=iI_ihxfowRRM3J2bj2YoDeMetF6z-tns_TTnjg4c4uk,12428
404
- chellow-1761322486.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
405
- chellow-1761322486.0.0.dist-info/RECORD,,
403
+ chellow-1761338924.0.0.dist-info/METADATA,sha256=Y3aJGfAXFmhpyUvNacl8BUCN0jttvfj5N6fRczygvgg,12428
404
+ chellow-1761338924.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
405
+ chellow-1761338924.0.0.dist-info/RECORD,,