chellow 1742982717.0.0__py3-none-any.whl → 1743002611.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.

@@ -68,6 +68,7 @@ TCOD_MAP = {
68
68
  ),
69
69
  "301541": ("duos-fixed-gbp", None, None),
70
70
  "099335": ("duos-fixed-gbp", None, None),
71
+ "873562": ("duos-fixed-gbp", None, None),
71
72
  "986159": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
72
73
  "838286": ("duos-reactive-gbp", "duos-reactive-rate", "duos-reactive-kvarh"),
73
74
  "242643": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
@@ -83,16 +84,19 @@ TCOD_MAP = {
83
84
  "871593": ("ebrs-gbp", "ebrs-rate", "ebrs-kwh"),
84
85
  "873894": ("ebrs-gbp", "ebrs-rate", "ebrs-kwh"),
85
86
  "309707": ("fit-gbp", "fit-rate", "fit-kwh"),
86
- "994483": ("reconciliation-gbp", None, None),
87
87
  "310129": ("meter-rental-gbp", None, None),
88
88
  "452415": ("meter-rental-gbp", None, None),
89
89
  "544936": ("meter-rental-gbp", "meter-rental-rate", "meter-rental-days"),
90
90
  "265091": ("night-gbp", "night-rate", "night-kwh"),
91
91
  "483457": ("peak-gbp", "peak-rate", "peak-kwh"),
92
92
  "975901": ("peak-shoulder-gbp", "peak-shoulder-rate", "peak-shoulder-kwh"),
93
+ "994483": ("reconciliation-gbp", None, None),
94
+ "637176": ("reconciliation-gbp", None, None),
95
+ "913821": ("reconciliation-gbp", None, None),
93
96
  "307660": ("ro-gbp", "ro-rate", "ro-kwh"),
94
97
  "364252": ("ro-gbp", "ro-rate", "ro-kwh"),
95
98
  "378246": ("ro-gbp", "ro-rate", "ro-kwh"),
99
+ "708848": ("ro-gbp", None, None),
96
100
  "632209": ("summer-night-gbp", "summer-night-rate", "summer-night-kwh"),
97
101
  "663682": ("summer-weekday-gbp", "summer-weekday-rate", "summer-weekday-kwh"),
98
102
  "299992": ("summer-weekend-gbp", "summer-weekend-rate", "summer-weekend-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: 1742982717.0.0
3
+ Version: 1743002611.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=GVuPnDUGJqPbdD8Z4Ccoiw4ZLeuEXFgAkrTLS_znTQw,244452
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=jex-hVndgbr-y72_mNS84feA-Gpy15k9xMITFLspVbQ,15608
53
+ chellow/e/bill_parsers/engie_edi.py,sha256=G1cUW49-gTURXOHOLMh8nHz_gvvaD9WYxWdxLYmrQZw,15792
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-1742982717.0.0.dist-info/METADATA,sha256=G0IsCWBe-jpVXjnB7Nt-GiUjHm38HwcEreGC_VCjp7w,12238
382
- chellow-1742982717.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
- chellow-1742982717.0.0.dist-info/RECORD,,
381
+ chellow-1743002611.0.0.dist-info/METADATA,sha256=6PoVT1y23brtcgY8t_NJLLGlNa6tOvKeMiQUVSQ7QZU,12238
382
+ chellow-1743002611.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
+ chellow-1743002611.0.0.dist-info/RECORD,,