chellow 1751540097.0.0__py3-none-any.whl → 1751619264.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/tlms.py
CHANGED
|
@@ -89,7 +89,10 @@ def _find_complete_date(caches, sess, contract, cache):
|
|
|
89
89
|
rates["id"] = rs.id
|
|
90
90
|
cache["rate_scripts"].append(rates)
|
|
91
91
|
timestamps = cache["timestamps"]
|
|
92
|
-
|
|
92
|
+
try:
|
|
93
|
+
tlms = rates["tlms"]
|
|
94
|
+
except KeyError:
|
|
95
|
+
tlms = rates["tlms"] = {}
|
|
93
96
|
complete = True
|
|
94
97
|
for dt in hh_range(caches, rs.start_date, rs.finish_date):
|
|
95
98
|
timestamps[dt] = rates
|
|
@@ -236,6 +239,11 @@ def _process_line(cache, sess, contract, log_func, values, complete_date, caches
|
|
|
236
239
|
.order_by(RateScript.start_date.desc())
|
|
237
240
|
.first()
|
|
238
241
|
)
|
|
242
|
+
if hh_date < latest_rs.start_date:
|
|
243
|
+
raise BadRequest(
|
|
244
|
+
f"The start of the latest rate script must be before "
|
|
245
|
+
f"{hh_format(hh_date)}"
|
|
246
|
+
)
|
|
239
247
|
contract.update_rate_script(
|
|
240
248
|
sess,
|
|
241
249
|
latest_rs,
|
chellow/e/triad.py
CHANGED
|
@@ -94,10 +94,8 @@ def _process_triad_hh(ds, rate_period, est_kw, hh):
|
|
|
94
94
|
if ds.site is None:
|
|
95
95
|
era = ds.supply.find_era_at(ds.sess, earliest_triad)
|
|
96
96
|
if (
|
|
97
|
-
era is None
|
|
98
|
-
|
|
99
|
-
and est_kw is None
|
|
100
|
-
):
|
|
97
|
+
era is None or era.get_channel(ds.sess, ds.is_import, "ACTIVE") is None
|
|
98
|
+
) and est_kw is None:
|
|
101
99
|
est_kw = 0.85 * max(datum["msp-kwh"] for datum in ds.hh_data) * 2
|
|
102
100
|
if est_kw is not None:
|
|
103
101
|
for est_datum in est_triad_kws:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1751619264.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)
|
|
@@ -41,9 +41,9 @@ chellow/e/rcrc.py,sha256=92CA1uIotIHd1epQ_jEPdJKzXqDFV-AoJOJeRO6MEyA,4274
|
|
|
41
41
|
chellow/e/ro.py,sha256=dZKZv_9wXSWuwcb3jiKavoD_9ot-PZseNVeEEe0siLo,596
|
|
42
42
|
chellow/e/scenario.py,sha256=FLgh03r_SgXx0hMWFbAvwsz2ScDL8LUwYWSWVv2rQlg,24973
|
|
43
43
|
chellow/e/system_price.py,sha256=6w5J7bzwFAZubE2zdOFRiS8IIrVP8hkoIOaG2yCt-Ic,6232
|
|
44
|
-
chellow/e/tlms.py,sha256=
|
|
44
|
+
chellow/e/tlms.py,sha256=K2n-dF6qNW7VQp4m_sVK1HWnXarmAIzpotWXYqWQacY,9363
|
|
45
45
|
chellow/e/tnuos.py,sha256=NBmc-f3oezrl4gviAKobljHfICTpBKxxxEGBGJi_lRk,4927
|
|
46
|
-
chellow/e/triad.py,sha256=
|
|
46
|
+
chellow/e/triad.py,sha256=NSIIDsj6mPLr_jIFxce-cXzh7bxLTv5cFsNBJhY4CH0,13686
|
|
47
47
|
chellow/e/views.py,sha256=e5rMZFT2fNO3P14_0nCyOEwNWnMiayx2wqo4PJmBwRM,220111
|
|
48
48
|
chellow/e/bill_parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
49
|
chellow/e/bill_parsers/activity_mop_stark_xlsx.py,sha256=opjXRrqrgBTbSKzL0JfTLP0fnz3DL3oRZZ4P0DifQ3I,4119
|
|
@@ -385,6 +385,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
|
|
|
385
385
|
chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
|
|
386
386
|
chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
|
|
387
387
|
chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
|
|
388
|
-
chellow-
|
|
389
|
-
chellow-
|
|
390
|
-
chellow-
|
|
388
|
+
chellow-1751619264.0.0.dist-info/METADATA,sha256=xlK5YqUwEKANf3zGXV4UcDjBQRjqy22tD54jbvo4XS4,12238
|
|
389
|
+
chellow-1751619264.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
390
|
+
chellow-1751619264.0.0.dist-info/RECORD,,
|
|
File without changes
|