chellow 1753180539.0.0__py3-none-any.whl → 1753257333.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/dno_rate_parser.py +4 -2
- chellow/e/views.py +17 -20
- {chellow-1753180539.0.0.dist-info → chellow-1753257333.0.0.dist-info}/METADATA +1 -1
- {chellow-1753180539.0.0.dist-info → chellow-1753257333.0.0.dist-info}/RECORD +5 -5
- {chellow-1753180539.0.0.dist-info → chellow-1753257333.0.0.dist-info}/WHEEL +0 -0
chellow/e/dno_rate_parser.py
CHANGED
|
@@ -54,7 +54,7 @@ def get_rate(row, idx):
|
|
|
54
54
|
return None
|
|
55
55
|
|
|
56
56
|
val = cell.value
|
|
57
|
-
if val
|
|
57
|
+
if val in (None, "-"):
|
|
58
58
|
return None
|
|
59
59
|
elif isinstance(val, str) and len(val) == 0:
|
|
60
60
|
return None
|
|
@@ -318,10 +318,11 @@ def tab_ehv(sheet, gsp_rates):
|
|
|
318
318
|
band = 0
|
|
319
319
|
else:
|
|
320
320
|
band_val = get_value(row, band_col)
|
|
321
|
-
if band_val
|
|
321
|
+
if band_val in (None, ""):
|
|
322
322
|
band = 0
|
|
323
323
|
else:
|
|
324
324
|
band = int(band_val)
|
|
325
|
+
|
|
325
326
|
tariffs[llfc] = {
|
|
326
327
|
"super-red-gbp-per-kwh": get_rate(
|
|
327
328
|
row, col_match(title_row, f"{polarity} super red")
|
|
@@ -457,6 +458,7 @@ GSP_MAP = (
|
|
|
457
458
|
("mide", "_E"),
|
|
458
459
|
("sepd", "_H"),
|
|
459
460
|
("sweb", "_L"),
|
|
461
|
+
("spd", "_N"),
|
|
460
462
|
)
|
|
461
463
|
|
|
462
464
|
|
chellow/e/views.py
CHANGED
|
@@ -5714,31 +5714,28 @@ def supply_post(supply_id):
|
|
|
5714
5714
|
start_date_str = req_str("start_date")
|
|
5715
5715
|
start_date = parse_hh_start(start_date_str)
|
|
5716
5716
|
if start_date is None:
|
|
5717
|
-
raise BadRequest("The
|
|
5717
|
+
raise BadRequest("The date of the MSN change is blank.")
|
|
5718
5718
|
|
|
5719
5719
|
msn = req_str("msn")
|
|
5720
5720
|
msg = ""
|
|
5721
5721
|
era = supply.find_era_at(g.sess, start_date)
|
|
5722
|
-
if era is None:
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
)
|
|
5734
|
-
else:
|
|
5735
|
-
era.msn = msn
|
|
5722
|
+
if era is not None and era.start_date != start_date:
|
|
5723
|
+
era = supply.insert_era_at(g.sess, start_date)
|
|
5724
|
+
g.sess.commit()
|
|
5725
|
+
for era in supply.find_eras(g.sess, start_date, None):
|
|
5726
|
+
if era.msn == msn:
|
|
5727
|
+
msg += (
|
|
5728
|
+
f"The era at {hh_format(era.start_date)} already has the "
|
|
5729
|
+
f"MSN {msn}. "
|
|
5730
|
+
)
|
|
5731
|
+
else:
|
|
5732
|
+
era.msn = msn
|
|
5736
5733
|
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5734
|
+
g.sess.commit()
|
|
5735
|
+
msg += (
|
|
5736
|
+
f"The era at {hh_format(era.start_date)} has been "
|
|
5737
|
+
f"successfully updated with the MSN {msn}. "
|
|
5738
|
+
)
|
|
5742
5739
|
flash(msg)
|
|
5743
5740
|
return render_template("supply_post.html")
|
|
5744
5741
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1753257333.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)
|
|
@@ -22,7 +22,7 @@ chellow/e/bsuos.py,sha256=2L7pgiGbV4k1Udfzjj4B2Qye02sV_FhNjwh7_sIxXFg,15525
|
|
|
22
22
|
chellow/e/ccl.py,sha256=30dh_SvlgzsTQPPAJNZWILaMvbeDsv9-P-S1JxS5_SQ,3184
|
|
23
23
|
chellow/e/cfd.py,sha256=CWLdYeNjgqT6Ro8YRf4vhwXIAJ2aV4Wi6HLNClVSeaQ,14260
|
|
24
24
|
chellow/e/computer.py,sha256=lt4Zlr8EOClL1acuuvKA-tNPCI5RRHnAZbsaGQnB9j4,68835
|
|
25
|
-
chellow/e/dno_rate_parser.py,sha256=
|
|
25
|
+
chellow/e/dno_rate_parser.py,sha256=psJBBYHsZp1eQcrCyzPv7Tqo_AFhD5bneZSGpaQxDKs,21795
|
|
26
26
|
chellow/e/duos.py,sha256=RHrn93I1ASO2uYkuF18qlhG4p-jpuJhd_g3o69wtP4U,31004
|
|
27
27
|
chellow/e/elexon.py,sha256=eOmX_wpxj6Ty6eaEgGAgXX-MgyJkYQSAT6DtJeP1rUE,5544
|
|
28
28
|
chellow/e/energy_management.py,sha256=aXC2qlGt3FAODlNl_frWzVYAQrJLP8FFOiNX3m-QE_Y,12388
|
|
@@ -44,7 +44,7 @@ chellow/e/system_price.py,sha256=6w5J7bzwFAZubE2zdOFRiS8IIrVP8hkoIOaG2yCt-Ic,623
|
|
|
44
44
|
chellow/e/tlms.py,sha256=K2n-dF6qNW7VQp4m_sVK1HWnXarmAIzpotWXYqWQacY,9363
|
|
45
45
|
chellow/e/tnuos.py,sha256=NBmc-f3oezrl4gviAKobljHfICTpBKxxxEGBGJi_lRk,4927
|
|
46
46
|
chellow/e/triad.py,sha256=uQIngSrz8irBXQ0Rp_s8nAUzu-y2Ms7aj4B38_Ff8y8,13720
|
|
47
|
-
chellow/e/views.py,sha256=
|
|
47
|
+
chellow/e/views.py,sha256=7nvH0D3Q1Q1bmTtPTzHKmMt8uNnhhF9GYHWRxZIBWT0,220622
|
|
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
|
|
50
50
|
chellow/e/bill_parsers/annual_mop_stark_xlsx.py,sha256=-HMoIfa_utXYKA44RuC0Xqv3vd2HLeQU_4P0iBUd3WA,4219
|
|
@@ -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-1753257333.0.0.dist-info/METADATA,sha256=-Ap3LiI6IQUf4wShS13GeZg2nzWVwHSSXz5uqPcpaEE,12585
|
|
389
|
+
chellow-1753257333.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
390
|
+
chellow-1753257333.0.0.dist-info/RECORD,,
|
|
File without changes
|