chellow 1742998025.0.0__py3-none-any.whl → 1743064888.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/engie_edi.py +1 -0
- chellow/models.py +6 -0
- {chellow-1742998025.0.0.dist-info → chellow-1743064888.0.0.dist-info}/METADATA +1 -1
- {chellow-1742998025.0.0.dist-info → chellow-1743064888.0.0.dist-info}/RECORD +5 -5
- {chellow-1742998025.0.0.dist-info → chellow-1743064888.0.0.dist-info}/WHEEL +0 -0
|
@@ -86,6 +86,7 @@ TCOD_MAP = {
|
|
|
86
86
|
"309707": ("fit-gbp", "fit-rate", "fit-kwh"),
|
|
87
87
|
"310129": ("meter-rental-gbp", None, None),
|
|
88
88
|
"452415": ("meter-rental-gbp", None, None),
|
|
89
|
+
"371265": ("meter-rental-gbp", None, None),
|
|
89
90
|
"544936": ("meter-rental-gbp", "meter-rental-rate", "meter-rental-days"),
|
|
90
91
|
"265091": ("night-gbp", "night-rate", "night-kwh"),
|
|
91
92
|
"483457": ("peak-gbp", "peak-rate", "peak-kwh"),
|
chellow/models.py
CHANGED
|
@@ -1594,8 +1594,14 @@ class Contract(Base, PersistentClass):
|
|
|
1594
1594
|
def delete(self, sess):
|
|
1595
1595
|
if len(self.batches) > 0:
|
|
1596
1596
|
raise BadRequest("Can't delete a contract that has batches.")
|
|
1597
|
+
for rs in self.rate_scripts[1:]:
|
|
1598
|
+
self.delete_rate_script(sess, rs)
|
|
1599
|
+
rs = self.rate_scripts[0]
|
|
1600
|
+
rs.contract_id = None
|
|
1597
1601
|
self.rate_scripts[:] = []
|
|
1598
1602
|
sess.delete(self)
|
|
1603
|
+
sess.flush()
|
|
1604
|
+
sess.delete(rs)
|
|
1599
1605
|
|
|
1600
1606
|
def find_rate_script_at(self, sess, date):
|
|
1601
1607
|
return sess.scalars(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1743064888.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)
|
|
@@ -5,7 +5,7 @@ chellow/commands.py,sha256=ESBe9ZWj1c3vdZgqMZ9gFvYAB3hRag2R1PzOwuw9yFo,1302
|
|
|
5
5
|
chellow/dloads.py,sha256=dixp-O0MF2_mlwrnKx3D9DH09Qu05BjTo0rZfigTjR4,5534
|
|
6
6
|
chellow/edi_lib.py,sha256=alu20x9ZX06iPfnNI9dEJzuP6RIf4We3Y_M_bl7RrcY,51789
|
|
7
7
|
chellow/general_import.py,sha256=pRGMcdhPq0Gfr1QG8LiqToKp-mnYa2yB8tfh8fy7eQo,65313
|
|
8
|
-
chellow/models.py,sha256=
|
|
8
|
+
chellow/models.py,sha256=XD5wl3Pa8vZFGA0aB1Pu-xJs3iBoBoeX44E8Myho_68,244648
|
|
9
9
|
chellow/national_grid.py,sha256=czwIZqzJndSGhEMQ5YzI6hRBhvjkM6VRVYXybf4_KXg,4377
|
|
10
10
|
chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
|
|
11
11
|
chellow/rate_server.py,sha256=fg-Pf_9Hk3bXmC9riPQNGQxBvLvBa_WtNYdwDCjnCSg,5678
|
|
@@ -50,7 +50,7 @@ chellow/e/bill_parsers/annual_mop_stark_xlsx.py,sha256=-HMoIfa_utXYKA44RuC0Xqv3v
|
|
|
50
50
|
chellow/e/bill_parsers/bgb_edi.py,sha256=GuwHeYbAGk7BVg5n19FcTANFDyKI-y0z3f9niQaPSSw,4828
|
|
51
51
|
chellow/e/bill_parsers/csv.py,sha256=U5zcIaZ6B5QTTpFDAcBnk4G2r8B3j5kJhDPL4AJNkEk,5640
|
|
52
52
|
chellow/e/bill_parsers/edf_export_xlsx.py,sha256=J4lY8epiSTIePZ6D1SGD76TXRoev35KrUC2sjHkNqlE,6632
|
|
53
|
-
chellow/e/bill_parsers/engie_edi.py,sha256=
|
|
53
|
+
chellow/e/bill_parsers/engie_edi.py,sha256=PDMDI0aqUM1lalgzxih1YmMho11n1rMqE0vyL-aEIs8,15840
|
|
54
54
|
chellow/e/bill_parsers/engie_export_xlsx.py,sha256=oZO0qHdDlOxjJ6J5Ate82CkAoX4bxed1EJyUKHxBcpk,4690
|
|
55
55
|
chellow/e/bill_parsers/engie_xls.py,sha256=jrut2heH_ZWmSjcn7celOydZS9Y49GfpYjDk_EKwamI,14453
|
|
56
56
|
chellow/e/bill_parsers/engie_xlsx.py,sha256=4Hu3ls1uNMH7vjDHgcP6QARlGlvb616CqG3xZVjAKWo,16888
|
|
@@ -378,6 +378,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
|
|
|
378
378
|
chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
|
|
379
379
|
chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
|
|
380
380
|
chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
|
|
381
|
-
chellow-
|
|
382
|
-
chellow-
|
|
383
|
-
chellow-
|
|
381
|
+
chellow-1743064888.0.0.dist-info/METADATA,sha256=oHexYBTO180YrkMUw4nfb367QAhustBqHytoVAu2Aao,12238
|
|
382
|
+
chellow-1743064888.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
383
|
+
chellow-1743064888.0.0.dist-info/RECORD,,
|
|
File without changes
|