chellow 1742469647.0.0__py3-none-any.whl → 1742896763.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.

@@ -104,13 +104,15 @@ TCOD_MAP = {
104
104
  "220894": ("winter-night-gbp", "winter-night-rate", "winter-night-kwh"),
105
105
  "264929": ("winter-weekday-gbp", "winter-weekday-rate", "winter-weekday-kwh"),
106
106
  "638187": ("winter-weekend-gbp", "winter-weekend-rate", "winter-weekend-kwh"),
107
- "700285": ("duo-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
107
+ "700285": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
108
108
  }
109
109
 
110
110
  TPR_LOOKUP = {
111
111
  "Day": "00043",
112
112
  "Off Peak / Weekends": "00210",
113
113
  "Night": "00210",
114
+ "Default Rate": "00043",
115
+ "Single": "00210",
114
116
  }
115
117
 
116
118
 
@@ -9,11 +9,7 @@ from sqlalchemy import or_
9
9
  from sqlalchemy.orm import joinedload
10
10
  from sqlalchemy.sql.expression import null
11
11
 
12
- from werkzeug.exceptions import BadRequest
13
-
14
12
  from chellow.dloads import open_file
15
- from chellow.e.computer import contract_func
16
- from chellow.gas.engine import GDataSource, forecast_date
17
13
  from chellow.models import GEra, GSupply, Session
18
14
  from chellow.utils import csv_make_val, req_date, req_int
19
15
 
@@ -44,8 +40,6 @@ def content(date, g_supply_id, user):
44
40
  "soq",
45
41
  )
46
42
  )
47
- fdate = forecast_date()
48
- caches = {}
49
43
 
50
44
  g_eras = (
51
45
  sess.query(GEra, GSupply)
@@ -83,16 +77,7 @@ def content(date, g_supply_id, user):
83
77
  g_supply_start_date = sup_g_eras[0].start_date
84
78
  g_supply_finish_date = sup_g_eras[-1].finish_date
85
79
 
86
- ds = GDataSource(sess, date, date, fdate, g_era, caches, None)
87
80
  g_supplier_contract = g_era.g_contract
88
- vb_function = contract_func(caches, g_supplier_contract, "virtual_bill")
89
- if vb_function is None:
90
- raise BadRequest(
91
- f"The contract {g_supplier_contract.name} doesn't have the "
92
- f"virtual_bill() function."
93
- )
94
- vb_function(ds)
95
- bill = ds.bill
96
81
 
97
82
  writer.writerow(
98
83
  csv_make_val(value)
@@ -112,8 +97,8 @@ def content(date, g_supply_id, user):
112
97
  g_supply_start_date,
113
98
  g_supply_finish_date,
114
99
  g_era.g_reading_frequency.code,
115
- bill["aq"],
116
- bill["soq"],
100
+ g_era.aq,
101
+ g_era.soq,
117
102
  ]
118
103
  )
119
104
  except BaseException:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chellow
3
- Version: 1742469647.0.0
3
+ Version: 1742896763.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)
@@ -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=-DXbOKo0wNiCn-OVMaTFUJyVeGFA5NEUfDzrv3-tQi0,15555
53
+ chellow/e/bill_parsers/engie_edi.py,sha256=jex-hVndgbr-y72_mNS84feA-Gpy15k9xMITFLspVbQ,15608
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
@@ -102,7 +102,7 @@ chellow/reports/report_csv_site_hh_data.py,sha256=ik0OkGVo1bfTXLdcT3gPUHnxSkSdor
102
102
  chellow/reports/report_csv_site_snags.py,sha256=AuAy6vjL0g7vwPPAZhBqxOyITL9_jnyFj012MnUcxxk,2627
103
103
  chellow/reports/report_ecoes_comparison.py,sha256=wEwJrFMOz74CidONkTmgWD1Ghhgo9DT0V7Vddkspkqg,21403
104
104
  chellow/reports/report_g_monthly_duration.py,sha256=VQq5xTLvdu9Z_vqrgWNP2S4xm2uCSSZA9HVNiQv9Dus,18264
105
- chellow/reports/report_g_supplies_snapshot.py,sha256=f6yuds1_X3j3domC1lCyA788RdxCgFZSee-4L7BhwU8,4677
105
+ chellow/reports/report_g_supplies_snapshot.py,sha256=9xB6RDrnbgxuomMcP1b1yEP4kOnEJ34WgKpyxLTprOQ,3998
106
106
  chellow/reports/report_g_supply_virtual_bill.py,sha256=EaYrB8PHJIXrUuhiZ7dwUlbNBkuyJebQHrdc308_z1o,3653
107
107
  chellow/reports/report_g_virtual_bills.py,sha256=20vHa5LGQwOAlJlaGJaGszZrrbT0PMOZJf6hSxU2hIQ,4528
108
108
  chellow/reports/report_g_virtual_bills_hh.py,sha256=gaiLEmKTpq6JsfZ1p0SdCDuPvzvigXp6z88gHRCA63w,3416
@@ -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-1742469647.0.0.dist-info/METADATA,sha256=h2cMM3e98XS32aO0HYuIC6wJGIrSXOIJyFIOK4b_kj8,12238
382
- chellow-1742469647.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
- chellow-1742469647.0.0.dist-info/RECORD,,
381
+ chellow-1742896763.0.0.dist-info/METADATA,sha256=4JSYUHtJTBvxXihV9h4fYzFMnp0XlwQahYaaf61_98E,12238
382
+ chellow-1742896763.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
+ chellow-1742896763.0.0.dist-info/RECORD,,