chellow 1753180539.0.0__py3-none-any.whl → 1753182209.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/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: 1753182209.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)
|
|
@@ -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-1753182209.0.0.dist-info/METADATA,sha256=7anKRCEEZQ42bSqtEd4uozS1hdVluvK83SWQvDymD1M,12585
|
|
389
|
+
chellow-1753182209.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
390
|
+
chellow-1753182209.0.0.dist-info/RECORD,,
|
|
File without changes
|