chellow 1746445803.0.0__py3-none-any.whl → 1746461216.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.

@@ -144,6 +144,7 @@ def run_import(sess, log, set_progress):
144
144
  ).one_or_none()
145
145
 
146
146
  if fake_batch is not None:
147
+ log("Found existing fake batch")
147
148
  first_fake_bill = sess.scalars(
148
149
  select(GBill)
149
150
  .where(GBill.g_batch == fake_batch)
@@ -158,6 +159,7 @@ def run_import(sess, log, set_progress):
158
159
  fake_batch = None
159
160
 
160
161
  if fake_batch is None:
162
+ log("Adding a new fake batch")
161
163
  fake_batch = g_contract.insert_g_batch(sess, fake_batch_name, "Fake Batch")
162
164
  raw_bills = fb_func(
163
165
  sess,
@@ -168,6 +170,7 @@ def run_import(sess, log, set_progress):
168
170
  current_month_finish,
169
171
  )
170
172
  if raw_bills is not None and len(raw_bills) > 0:
173
+ log("About to insert raw bills")
171
174
  for raw_bill in raw_bills:
172
175
  bill_type = BillType.get_by_code(sess, raw_bill["bill_type_code"])
173
176
  g_supply = GSupply.get_by_mprn(sess, raw_bill["mprn"])
@@ -210,6 +213,7 @@ def run_import(sess, log, set_progress):
210
213
  pres_type,
211
214
  )
212
215
  sess.commit()
216
+ sess.commit()
213
217
 
214
218
 
215
219
  LAST_RUN_KEY = "fake_batch_updater_last_run"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chellow
3
- Version: 1746445803.0.0
3
+ Version: 1746461216.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)
@@ -4,7 +4,7 @@ chellow/bank_holidays.py,sha256=T_utYMwe_g1dz5X-aOTdIPryg49SvB7QsWM1yphlqG8,4423
4
4
  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
- chellow/fake_batch_updater.py,sha256=UdI1ygrrU5a9UZVxc9j9Lq-tIejHFGalG_4g-rPsriI,10596
7
+ chellow/fake_batch_updater.py,sha256=RH43yx0ndVM0xrMaNXdla_ZVMoyMp_zXzSvyt-jM62o,10759
8
8
  chellow/general_import.py,sha256=y8X-FzQJzVrfvVMyErNHns2MGI511KwDC19AjIX3nTk,65325
9
9
  chellow/models.py,sha256=XD5wl3Pa8vZFGA0aB1Pu-xJs3iBoBoeX44E8Myho_68,244648
10
10
  chellow/national_grid.py,sha256=czwIZqzJndSGhEMQ5YzI6hRBhvjkM6VRVYXybf4_KXg,4377
@@ -383,6 +383,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
383
383
  chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
384
384
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
385
385
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
386
- chellow-1746445803.0.0.dist-info/METADATA,sha256=Ktp_Yf29rGg67hVLzXqCvgIBzYl3qsnyQN5fjOLS0Hk,12238
387
- chellow-1746445803.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
388
- chellow-1746445803.0.0.dist-info/RECORD,,
386
+ chellow-1746461216.0.0.dist-info/METADATA,sha256=JPemiCPuLuGNQ9IDHuZ3SuNxTcMNF8WkVWDfvi3z5Y8,12238
387
+ chellow-1746461216.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
388
+ chellow-1746461216.0.0.dist-info/RECORD,,