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

@@ -36,6 +36,8 @@ def _handle_0000(headers, pre_record, record):
36
36
 
37
37
 
38
38
  def _handle_0050(headers, pre_record, record):
39
+ pass
40
+ """
39
41
  parts = _chop_record(
40
42
  record,
41
43
  issue_date=DATE_LENGTH,
@@ -46,6 +48,7 @@ def _handle_0050(headers, pre_record, record):
46
48
  late_payment=12,
47
49
  )
48
50
  headers["late_payment"] = Decimal(parts["late_payment"]) / Decimal(100)
51
+ """
49
52
 
50
53
 
51
54
  def _handle_0051(headers, pre_record, record):
@@ -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: 1745911639.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
@@ -59,7 +59,7 @@ chellow/e/bill_parsers/gdf_csv.py,sha256=ZfK3Oc6oP28p_P9DIevLNB_zW2WLcEJ3Lvb1gL3
59
59
  chellow/e/bill_parsers/haven_csv.py,sha256=0uENq8IgVNqdxfBQMBxLTSZWCOuDHXZC0xzk52SbfyE,13652
60
60
  chellow/e/bill_parsers/haven_edi.py,sha256=YGPHRxPOhje9s32jqPHHELni2tooOYj3cMC_qaZVPq4,16107
61
61
  chellow/e/bill_parsers/haven_edi_tprs.py,sha256=ZVX9CCqUybsot_Z0BEOJPvl9x5kSr7fEWyuJXvZDcz4,11841
62
- chellow/e/bill_parsers/mm.py,sha256=tv7SAIbwFJYCiHz1ZwTV9QJeGkSo3-KuOp--DUimzLI,11227
62
+ chellow/e/bill_parsers/mm.py,sha256=i1TcEo3eY6_i_1DfRP3fIX7kIsx5cVx_FZPFG6S-FNo,11252
63
63
  chellow/e/bill_parsers/nonsettlement_dc_stark_xlsx.py,sha256=YvQ0Q6HlZ4XSk6Phx1UWaTSj8FREVjwQe8nrpiLVzbU,5458
64
64
  chellow/e/bill_parsers/settlement_dc_stark_xlsx.py,sha256=osCpUYUdLcPtlo7ngXWGw0ImnxssLa1fOSejMwe51-k,6381
65
65
  chellow/e/bill_parsers/sse_edi.py,sha256=L85DOfNkqexeEIEr8pCBn_2sHJI-zEaw6cogpE3YyYM,15204
@@ -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-1745911639.0.0.dist-info/METADATA,sha256=ayBjqwEd2px2L8nUYB1t63nDxqnf-NrSJIhWkln42HA,12238
387
- chellow-1745911639.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
388
- chellow-1745911639.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,,