chellow 1721742190.0.0__py3-none-any.whl → 1722367388.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/bill_parsers/mm.py +6 -1
- chellow/national_grid.py +1 -1
- chellow/views.py +1 -1
- {chellow-1721742190.0.0.dist-info → chellow-1722367388.0.0.dist-info}/METADATA +1 -1
- {chellow-1721742190.0.0.dist-info → chellow-1722367388.0.0.dist-info}/RECORD +6 -6
- {chellow-1721742190.0.0.dist-info → chellow-1722367388.0.0.dist-info}/WHEEL +0 -0
chellow/e/bill_parsers/mm.py
CHANGED
|
@@ -80,6 +80,11 @@ CHARGE_UNITS_LOOKUP = {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
ELEMENT_LOOKUP = {
|
|
83
|
+
"1ANNUAL": "duos-red",
|
|
84
|
+
"2ANNUAL": "duos-amber",
|
|
85
|
+
"3ANNUAL": "duos-green",
|
|
86
|
+
"7ANNUAL": "duos-fixed",
|
|
87
|
+
"9ANNUAL": "duos-reactive",
|
|
83
88
|
"10ANNUAL": "standing",
|
|
84
89
|
"20RS0108": "single",
|
|
85
90
|
"30ANNUAL": "mop",
|
|
@@ -119,7 +124,7 @@ def _handle_0460(headers, pre_record, record):
|
|
|
119
124
|
gbp = Decimal(parts["gbp"]) / 100
|
|
120
125
|
quantity = Decimal(parts["quantity"])
|
|
121
126
|
rate = Decimal(parts["rate"])
|
|
122
|
-
element_name = ELEMENT_LOOKUP[parts["code"]]
|
|
127
|
+
element_name = ELEMENT_LOOKUP[parts["code"].strip()]
|
|
123
128
|
breakdown = headers["breakdown"]
|
|
124
129
|
breakdown[f"{element_name}-{units}"] += quantity
|
|
125
130
|
rate_name = f"{element_name}-rate"
|
chellow/national_grid.py
CHANGED
|
@@ -21,7 +21,7 @@ importer = None
|
|
|
21
21
|
|
|
22
22
|
def api_get(s, path, params=None):
|
|
23
23
|
url = f"https://api.nationalgrideso.com/api/3/action/{path}"
|
|
24
|
-
res = s.get(url, params=params)
|
|
24
|
+
res = s.get(url, params=params, timeout=120)
|
|
25
25
|
try:
|
|
26
26
|
res_j = res.json()
|
|
27
27
|
except requests.exceptions.JSONDecodeError as e:
|
chellow/views.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1722367388.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)
|
|
@@ -6,12 +6,12 @@ chellow/dloads.py,sha256=5SmP-0QPK6xCkd_wjIWh_8FAzN5OxNHCzyEQ1Xb-Y-M,5256
|
|
|
6
6
|
chellow/edi_lib.py,sha256=alu20x9ZX06iPfnNI9dEJzuP6RIf4We3Y_M_bl7RrcY,51789
|
|
7
7
|
chellow/general_import.py,sha256=l3EHq9zG9Vfl5Ee6XTVrC1nusXo4YGGB4VBmZ_JaJR8,65798
|
|
8
8
|
chellow/models.py,sha256=7fCVyf9aCDb9natETLHzC2XIQkYxJhyLQhOQsTMWjFI,243147
|
|
9
|
-
chellow/national_grid.py,sha256=
|
|
9
|
+
chellow/national_grid.py,sha256=czwIZqzJndSGhEMQ5YzI6hRBhvjkM6VRVYXybf4_KXg,4377
|
|
10
10
|
chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
|
|
11
11
|
chellow/rate_server.py,sha256=fg-Pf_9Hk3bXmC9riPQNGQxBvLvBa_WtNYdwDCjnCSg,5678
|
|
12
12
|
chellow/testing.py,sha256=Od4HHH6pZrhJ_De118_F55RJEKmAvhUH2S24QE9qFQk,3635
|
|
13
13
|
chellow/utils.py,sha256=32qPWEGzCPKPhSM7ztpzcR6ZG74sVZanScDIdK50Rq4,19308
|
|
14
|
-
chellow/views.py,sha256=
|
|
14
|
+
chellow/views.py,sha256=s_pKNpBkiegxevAWEjowJKAtUPXpowOTbXI5473em4Y,79597
|
|
15
15
|
chellow/e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
chellow/e/aahedc.py,sha256=d2usudp7KYWpU6Pk3fal5EQ47EbvkvKeaFGylnb3NWw,606
|
|
17
17
|
chellow/e/bill_importer.py,sha256=7UcnqNlKbJc2GhW9gy8sDp9GuqambJVpZLvbafOZztA,7411
|
|
@@ -51,7 +51,7 @@ chellow/e/bill_parsers/gdf_csv.py,sha256=ZfK3Oc6oP28p_P9DIevLNB_zW2WLcEJ3Lvb1gL3
|
|
|
51
51
|
chellow/e/bill_parsers/haven_csv.py,sha256=0uENq8IgVNqdxfBQMBxLTSZWCOuDHXZC0xzk52SbfyE,13652
|
|
52
52
|
chellow/e/bill_parsers/haven_edi.py,sha256=YGPHRxPOhje9s32jqPHHELni2tooOYj3cMC_qaZVPq4,16107
|
|
53
53
|
chellow/e/bill_parsers/haven_edi_tprs.py,sha256=ZVX9CCqUybsot_Z0BEOJPvl9x5kSr7fEWyuJXvZDcz4,11841
|
|
54
|
-
chellow/e/bill_parsers/mm.py,sha256=
|
|
54
|
+
chellow/e/bill_parsers/mm.py,sha256=KhAwF8o3cdabTBmc2pbZgm9MlkAachwNsy4bsivTSrM,9459
|
|
55
55
|
chellow/e/bill_parsers/nonsettlement_dc_stark_xlsx.py,sha256=yogXTuQHGRL7IiqvRWr2C9V24ez1j9Yx0128UygPE_k,4723
|
|
56
56
|
chellow/e/bill_parsers/settlement_dc_stark_xlsx.py,sha256=PlEqCZuJ9DfQXeeYQ64jtf3ML7sUt_tt61QOOTnkE5c,6380
|
|
57
57
|
chellow/e/bill_parsers/sse_edi.py,sha256=L85DOfNkqexeEIEr8pCBn_2sHJI-zEaw6cogpE3YyYM,15204
|
|
@@ -364,6 +364,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
|
|
|
364
364
|
chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
|
|
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-
|
|
368
|
-
chellow-
|
|
369
|
-
chellow-
|
|
367
|
+
chellow-1722367388.0.0.dist-info/METADATA,sha256=lvfgDxukH_ByMr2M0Kmppz8rNbPWLKkEjvfc19LDnho,12241
|
|
368
|
+
chellow-1722367388.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
369
|
+
chellow-1722367388.0.0.dist-info/RECORD,,
|
|
File without changes
|