chellow 1730108364.0.0__py3-none-any.whl → 1730306906.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/__init__.py CHANGED
@@ -74,7 +74,6 @@ def create_app(testing=False, instance_path=None):
74
74
  app.register_blueprint(chellow.views.home)
75
75
  app.register_blueprint(chellow.e.views.e)
76
76
  app.register_blueprint(chellow.gas.views.gas)
77
- chellow.utils.root_path = app.root_path
78
77
 
79
78
  api = chellow.api.api
80
79
  api.init_app(app, endpoint="/api/v1")
@@ -90,6 +89,7 @@ def create_app(testing=False, instance_path=None):
90
89
  props = configuration.make_properties()
91
90
  api_props = props.get("api", {})
92
91
  api.description = api_props.get("description", "Access Chellow data")
92
+ chellow.utils.url_root = props.get("url_root", "")
93
93
 
94
94
  chellow.dloads.startup(Path(app.instance_path), run_deleter=(not testing))
95
95
 
@@ -116,20 +116,6 @@ def create_app(testing=False, instance_path=None):
116
116
  )
117
117
  print(msg)
118
118
 
119
- try:
120
- scheme = request.headers["X-Forwarded-Proto"]
121
- except KeyError:
122
- config_contract = Contract.get_non_core_by_name(g.sess, "configuration")
123
- props = config_contract.make_properties()
124
- scheme = props.get("redirect_scheme", "http")
125
-
126
- try:
127
- host = request.headers["X-Forwarded-Host"]
128
- except KeyError:
129
- host = request.host
130
-
131
- chellow.utils.url_root = scheme + "://" + host
132
-
133
119
  @app.before_request
134
120
  def check_permissions(*args, **kwargs):
135
121
  g.user = None
chellow/e/tnuos.py CHANGED
@@ -21,6 +21,7 @@ def hh(ds):
21
21
  BAND_LOOKUP = {
22
22
  "Domestic Aggregated (Related MPAN)": "Domestic",
23
23
  "Domestic Aggregated with Residual": "Domestic",
24
+ "Domestic Aggregated or CT with Residual": "Domestic",
24
25
  "HV Generation Site Specific": "HV1",
25
26
  "HV Generation Site Specific no RP charge": "HV1",
26
27
  "HV Site Specific Band 1": "HV1",
@@ -46,11 +47,21 @@ BAND_LOOKUP = {
46
47
  "LV Sub Site Specific No Residual": "LV1",
47
48
  "Non-Domestic Aggregated (related MPAN)": "LV_NoMIC_1",
48
49
  "Non-Domestic Aggregated Band 1": "LV_NoMIC_1",
50
+ "Non-Domestic Aggregated or CT Band 1": "LV_NoMIC_1",
49
51
  "Non-Domestic Aggregated Band 2": "LV_NoMIC_2",
52
+ "Non-Domestic Aggregated or CT Band 2": "LV_NoMIC_2",
50
53
  "Non-Domestic Aggregated Band 3": "LV_NoMIC_3",
54
+ "Non-Domestic Aggregated or CT Band 3": "LV_NoMIC_3",
51
55
  "Non-Domestic Aggregated Band 4": "LV_NoMIC_4",
56
+ "Non-Domestic Aggregated or CT Band 4": "LV_NoMIC_4",
52
57
  "Non-Domestic Aggregated No Residual": "LV_NoMIC_1",
58
+ "Non-Domestic Aggregated or CT No Residual": "LV_NoMIC_1",
53
59
  "Unmetered Supplies": "Unmetered",
60
+ "Designated EHV Site Specific No Residual": "EHV1",
61
+ "Designated EHV Site Specific Band 1": "EHV1",
62
+ "Designated EHV Site Specific Band 2": "EHV2",
63
+ "Designated EHV Site Specific Band 3": "EHV3",
64
+ "Designated EHV Site Specific Band 4": "EHV4",
54
65
  "Designated EHV0": "EHV1",
55
66
  "Designated EHV1": "EHV1",
56
67
  "Designated EHV2": "EHV2",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1730108364.0.0
3
+ Version: 1730306906.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)
@@ -22,7 +22,7 @@ Requires-Dist: python-dateutil==2.8.2
22
22
  Requires-Dist: pytz==2022.6
23
23
  Requires-Dist: requests==2.32.2
24
24
  Requires-Dist: sqlalchemy==2.0.30
25
- Requires-Dist: waitress==2.1.2
25
+ Requires-Dist: waitress==3.0.1
26
26
  Requires-Dist: xlrd==2.0.1
27
27
  Requires-Dist: zish==0.1.11
28
28
  Description-Content-Type: text/markdown
@@ -1,4 +1,4 @@
1
- chellow/__init__.py,sha256=hejB7bPYedSLGaDsHR0_g3UTF7gKfQkdE4zuzoB3A5A,10242
1
+ chellow/__init__.py,sha256=ML9TeTCsCbEEjXLwe9BjeSe9WDj9VVgfdfW-D74oxVU,9785
2
2
  chellow/api.py,sha256=mk17TfweR76DPFC8lX2SArTjai6y6YshASxqO1w-_-s,11036
3
3
  chellow/bank_holidays.py,sha256=T_utYMwe_g1dz5X-aOTdIPryg49SvB7QsWM1yphlqG8,4423
4
4
  chellow/commands.py,sha256=ESBe9ZWj1c3vdZgqMZ9gFvYAB3hRag2R1PzOwuw9yFo,1302
@@ -41,7 +41,7 @@ chellow/e/ro.py,sha256=dZKZv_9wXSWuwcb3jiKavoD_9ot-PZseNVeEEe0siLo,596
41
41
  chellow/e/scenario.py,sha256=FLgh03r_SgXx0hMWFbAvwsz2ScDL8LUwYWSWVv2rQlg,24973
42
42
  chellow/e/system_price.py,sha256=6w5J7bzwFAZubE2zdOFRiS8IIrVP8hkoIOaG2yCt-Ic,6232
43
43
  chellow/e/tlms.py,sha256=M33D6YpMixu2KkwSCzDRM3kThLgShg8exp63Obo75l8,8905
44
- chellow/e/tnuos.py,sha256=XseYztPUsQXNKuBmystO2kzzwAG9ehCZgpGBTdgSk-A,4313
44
+ chellow/e/tnuos.py,sha256=NBmc-f3oezrl4gviAKobljHfICTpBKxxxEGBGJi_lRk,4927
45
45
  chellow/e/triad.py,sha256=lIQj7EdUrcFwEqleuHZXYU_bfzIwNOqUVVxB3NPQt4A,13710
46
46
  chellow/e/views.py,sha256=ZISAhDQZHM8j0VKdMOqfNBtwSLTE9c0OtnsGVCaT0kE,216706
47
47
  chellow/e/bill_parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -377,6 +377,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
377
377
  chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
378
378
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
379
379
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
380
- chellow-1730108364.0.0.dist-info/METADATA,sha256=6ueLHfA97aZWoR9h-N2AWXKzNQX_ENNk-7ola2Jke30,12204
381
- chellow-1730108364.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
382
- chellow-1730108364.0.0.dist-info/RECORD,,
380
+ chellow-1730306906.0.0.dist-info/METADATA,sha256=bhdp0UZlh1JYunlv3N7oBw4ggmLxl4bplW2oO7ftQlM,12204
381
+ chellow-1730306906.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
382
+ chellow-1730306906.0.0.dist-info/RECORD,,