chellow 1742998025.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.

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: 1742998025.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
@@ -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-1742998025.0.0.dist-info/METADATA,sha256=xkuq3d-aYidqtOqMUKjabDcGHwtNL0twBNauE8sLaBA,12238
382
- chellow-1742998025.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
- chellow-1742998025.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,,