chellow 1716986051.0.0__py3-none-any.whl → 1717082284.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/views.py CHANGED
@@ -3277,9 +3277,12 @@ def mop_contract_get(contract_id):
3277
3277
  .order_by(RateScript.start_date.desc())
3278
3278
  .all()
3279
3279
  )
3280
- now = utc_datetime_now()
3281
- last_month_start = utc_datetime(now.year, now.month) - relativedelta(months=1)
3282
- last_month_finish = last_month_start + relativedelta(months=1) - HH
3280
+ now_ct = ct_datetime_now()
3281
+ last_month_start_ct = ct_datetime(now_ct.year, now_ct.month) - relativedelta(
3282
+ months=1
3283
+ )
3284
+ last_month_start = to_utc(last_month_start_ct)
3285
+ last_month_finish = to_utc(last_month_start_ct + relativedelta(months=1) - HH)
3283
3286
  party = contract.party
3284
3287
  return render_template(
3285
3288
  "mop_contract.html",
@@ -44,7 +44,7 @@ def _to_finish_date(date_str):
44
44
  def _process_ADJ(elements, headers):
45
45
  adjf = elements["ADJF"]
46
46
  if adjf[0] == "CV":
47
- headers["cv"] = Decimal(adjf[1]) / Decimal(100000)
47
+ headers["reads"][-1]["calorific_value"] = Decimal(adjf[1]) / Decimal(100000)
48
48
 
49
49
 
50
50
  def _process_BCD(elements, headers):
@@ -159,9 +159,6 @@ def _process_MTR(elements, headers):
159
159
  if isinstance(v, set):
160
160
  breakdown[k] = sorted(v)
161
161
 
162
- for read in headers["reads"]:
163
- read["calorific_value"] = headers["cv"]
164
-
165
162
  return {
166
163
  "raw_lines": "\n".join(headers["raw_lines"]),
167
164
  "mprn": headers["mprn"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1716986051.0.0
3
+ Version: 1717082284.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)
@@ -38,7 +38,7 @@ chellow/e/system_price.py,sha256=6w5J7bzwFAZubE2zdOFRiS8IIrVP8hkoIOaG2yCt-Ic,623
38
38
  chellow/e/tlms.py,sha256=M33D6YpMixu2KkwSCzDRM3kThLgShg8exp63Obo75l8,8905
39
39
  chellow/e/tnuos.py,sha256=XseYztPUsQXNKuBmystO2kzzwAG9ehCZgpGBTdgSk-A,4313
40
40
  chellow/e/triad.py,sha256=lIQj7EdUrcFwEqleuHZXYU_bfzIwNOqUVVxB3NPQt4A,13710
41
- chellow/e/views.py,sha256=RQLiAzzWm5RUumvhR1rub1yFTMZ9uksqJIc1IShnXsQ,215256
41
+ chellow/e/views.py,sha256=AiafJQsK5pY7_bTiPq3zfJT1wEmcx5hhqkhIdX7fl8U,215342
42
42
  chellow/e/bill_parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
43
  chellow/e/bill_parsers/activity_mop_stark_xlsx.py,sha256=UgWXDPzQkQghyj_lfgBqoSJpHB-t-qOdSaB8qY6GLog,4071
44
44
  chellow/e/bill_parsers/annual_mop_stark_xlsx.py,sha256=-HMoIfa_utXYKA44RuC0Xqv3vd2HLeQU_4P0iBUd3WA,4219
@@ -59,7 +59,7 @@ chellow/e/bill_parsers/sww_xls.py,sha256=QEjiuvwvr5FuWCfqqVw8LaA_vZyAKsvRAS5fw3x
59
59
  chellow/gas/bill_import.py,sha256=w0lPgK_Drzh8rtnEBQe3qFuxrgzZ6qQSgpaGrrGznMU,6549
60
60
  chellow/gas/bill_parser_csv.py,sha256=Ecdy-apFT-mWAxddAsM4k1s-9-FpIaOfjP0oFc0rdQg,5557
61
61
  chellow/gas/bill_parser_engie_edi.py,sha256=Ko0vZP-QdVQ1uuhS_5cdrii60_cM4b_LFJMoY0pZqnk,8950
62
- chellow/gas/bill_parser_total_edi.py,sha256=pnh8qCd9NfXCZSbVxto9QIXoV7ri7exhLrUoP17brG0,7444
62
+ chellow/gas/bill_parser_total_edi.py,sha256=hbjvahC8mQ0RuyIEQVJu18XNqq7T_htnV-OYg6NSuiE,7379
63
63
  chellow/gas/ccl.py,sha256=DMlcPUELZi00CaDekVJINYk3GgH5apFrImVdmkbyba0,2913
64
64
  chellow/gas/cv.py,sha256=4cdYYQ8Qak6NeYdBCB4YaQ0jX8-UkaydIIdibCQuXxM,7344
65
65
  chellow/gas/dn_rate_parser.py,sha256=Mq8rAcUEUxIQOks59bsCKl8GrefvoHbrTCHqon9N0z0,11340
@@ -364,6 +364,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
364
364
  chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
365
365
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
366
366
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
367
- chellow-1716986051.0.0.dist-info/METADATA,sha256=CqjfLGqOJT69xLknA872weyk_pqlKMr_KL4gM-E9VdE,12205
368
- chellow-1716986051.0.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
369
- chellow-1716986051.0.0.dist-info/RECORD,,
367
+ chellow-1717082284.0.0.dist-info/METADATA,sha256=R51vpnZmFopkXyh1C4taeutDYrIwvfVjjyZoox9OX0E,12205
368
+ chellow-1717082284.0.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
369
+ chellow-1717082284.0.0.dist-info/RECORD,,