chellow 1761312650.0.0__py3-none-any.whl → 1761318293.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.
- chellow/e/bill_parsers/drax_edi.py +3 -0
- chellow/reports/report_111.py +7 -3
- chellow/templates/report_run_row_bill_check.html +4 -2
- {chellow-1761312650.0.0.dist-info → chellow-1761318293.0.0.dist-info}/METADATA +1 -1
- {chellow-1761312650.0.0.dist-info → chellow-1761318293.0.0.dist-info}/RECORD +6 -6
- {chellow-1761312650.0.0.dist-info → chellow-1761318293.0.0.dist-info}/WHEEL +0 -0
chellow/reports/report_111.py
CHANGED
|
@@ -688,8 +688,8 @@ 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
|
+
virtual_part = part.get("virtual")
|
|
692
|
+
actual_part = part.get("actual")
|
|
693
693
|
if isinstance(virtual_part, set) and len(virtual_part) == 1:
|
|
694
694
|
virtual_part = next(iter(virtual_part))
|
|
695
695
|
if isinstance(actual_part, set) and len(actual_part) == 1:
|
|
@@ -697,12 +697,16 @@ def _process_period(
|
|
|
697
697
|
|
|
698
698
|
if virtual_part is None or actual_part is None:
|
|
699
699
|
diff = None
|
|
700
|
+
passed = "❔"
|
|
700
701
|
elif isinstance(virtual_part, Number) and isinstance(actual_part, Number):
|
|
701
702
|
diff = float(actual_part) - float(virtual_part)
|
|
703
|
+
passed = "✅" if diff == 0 else "❌"
|
|
702
704
|
else:
|
|
703
|
-
diff =
|
|
705
|
+
diff = None
|
|
706
|
+
passed = "✅" if virtual_part == actual_part else "❌"
|
|
704
707
|
|
|
705
708
|
part["difference"] = diff
|
|
709
|
+
part["passed"] = passed
|
|
706
710
|
|
|
707
711
|
if first_era is None:
|
|
708
712
|
site = None
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
<th>Actual</th>
|
|
134
134
|
<th>Virtual</th>
|
|
135
135
|
<th>Difference</th>
|
|
136
|
+
<th>Passed</th>
|
|
136
137
|
</tr>
|
|
137
138
|
</thead>
|
|
138
139
|
<tbody>
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
{% if val is none %}
|
|
170
171
|
{% elif val is number %}
|
|
171
172
|
{% if part_name in ('kwh', 'kvarh') or part_name.endswith('-kwh') %}
|
|
172
|
-
{{"{:0,.
|
|
173
|
+
{{"{:0,.1f}".format(val)}}
|
|
173
174
|
{% elif part_name.endswith('-kw') %}
|
|
174
175
|
{{"{:0,.2f}".format(val)}}
|
|
175
176
|
{% else %}
|
|
@@ -181,7 +182,7 @@
|
|
|
181
182
|
{% for v in val %}
|
|
182
183
|
{% if v is number %}
|
|
183
184
|
{% if part_name in ('kwh', 'kvarh') or part_name.endswith('-kwh') %}
|
|
184
|
-
{{"{:0,.
|
|
185
|
+
{{"{:0,.1f}".format(v)}}
|
|
185
186
|
{% elif part_name.endswith('-kw') %}
|
|
186
187
|
{{"{:0,.2f}".format(v)}}
|
|
187
188
|
{% else %}
|
|
@@ -197,6 +198,7 @@
|
|
|
197
198
|
{% endif %}
|
|
198
199
|
</td>
|
|
199
200
|
{% endfor %}
|
|
201
|
+
<td>{{part['passed']}}</td>
|
|
200
202
|
</tr>
|
|
201
203
|
{% endif %}
|
|
202
204
|
{% endfor %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1761318293.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)
|
|
@@ -50,7 +50,7 @@ chellow/e/bill_parsers/activity_mop_stark_xlsx.py,sha256=hcbjxqLOe7qkDjS7enCpmfy
|
|
|
50
50
|
chellow/e/bill_parsers/annual_mop_stark_xlsx.py,sha256=yoEGQS0qcrv3TWFfxELIIi8f1CyKcIzh0xVaPoz2w2s,4191
|
|
51
51
|
chellow/e/bill_parsers/bgb_edi.py,sha256=GuwHeYbAGk7BVg5n19FcTANFDyKI-y0z3f9niQaPSSw,4828
|
|
52
52
|
chellow/e/bill_parsers/csv.py,sha256=mLwGaEkLIygBg8Zl5aHs--GurHh1RPPGlF4g6nWAp1Q,5965
|
|
53
|
-
chellow/e/bill_parsers/drax_edi.py,sha256=
|
|
53
|
+
chellow/e/bill_parsers/drax_edi.py,sha256=nkJtLnBImXWu4LYCaQqyo7-Ls7rlYyITyLd8Zk_cx-k,14245
|
|
54
54
|
chellow/e/bill_parsers/edf_export_xlsx.py,sha256=J4lY8epiSTIePZ6D1SGD76TXRoev35KrUC2sjHkNqlE,6632
|
|
55
55
|
chellow/e/bill_parsers/engie_edi.py,sha256=4KAyZpQrZhhGLM7WLZS1z8rOn5A8HgwBBvr5Jkf6cxE,12579
|
|
56
56
|
chellow/e/bill_parsers/engie_export_xlsx.py,sha256=oZO0qHdDlOxjJ6J5Ate82CkAoX4bxed1EJyUKHxBcpk,4690
|
|
@@ -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=
|
|
81
|
+
chellow/reports/report_111.py,sha256=lI-d-tT3GMfZzKpCtgaR7o5ySaDFOmD4qc9CFfr8wvY,26314
|
|
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
|
|
@@ -152,7 +152,7 @@ chellow/templates/report_run_g_bill_check.html,sha256=tOXl_mjR__foYKiOYflJbK-459
|
|
|
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=
|
|
155
|
+
chellow/templates/report_run_row_bill_check.html,sha256=EDDIgtPbEtjjrSEw5wpuPVor8o-M7aO0fN7yu1WZ8mY,6482
|
|
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-
|
|
404
|
-
chellow-
|
|
405
|
-
chellow-
|
|
403
|
+
chellow-1761318293.0.0.dist-info/METADATA,sha256=tEhiVeVet3NH3UUtaV6iNlZm2pHTlCSng3JxIdv3vj4,12428
|
|
404
|
+
chellow-1761318293.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
405
|
+
chellow-1761318293.0.0.dist-info/RECORD,,
|
|
File without changes
|