chellow 1730306906.0.0__py3-none-any.whl → 1731435800.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.

@@ -94,7 +94,7 @@ ELEMENT_LOOKUP = {
94
94
  "30RS0123": "night",
95
95
  "90ANNUAL": "duos-fixed",
96
96
  "9QANNUAL": "duos-availability",
97
- "9UANNUAL": "duos-excess-availability",
97
+ "9UANNUAL": "tnuos",
98
98
  "40ANNUAL": "maximum-demand",
99
99
  "20ANNUAL": "triad",
100
100
  "70ANNUAL": "elexon",
chellow/general_import.py CHANGED
@@ -83,7 +83,8 @@ ALLOWED_ACTIONS = ("insert", "update", "delete")
83
83
 
84
84
  def general_import_era(sess, action, vals, args):
85
85
  if action == "update":
86
- mpan_core = add_arg(args, "mpan_core", vals, 0)
86
+ mpan_core_str = add_arg(args, "mpan_core", vals, 0)
87
+ mpan_core = parse_mpan_core(mpan_core_str)
87
88
  supply = Supply.get_by_mpan_core(sess, mpan_core)
88
89
  date_str = add_arg(args, "date", vals, 1)
89
90
  dt = parse_hh_start(date_str)
@@ -150,11 +151,9 @@ def general_import_era(sess, action, vals, args):
150
151
 
151
152
  ssc_code = add_arg(args, "SSC", vals, 13)
152
153
  if ssc_code == NO_CHANGE:
153
- ssc = era.ssc
154
+ ssc_code = era.ssc.code
154
155
  elif len(ssc_code) == 0:
155
- ssc = None
156
- else:
157
- ssc = Ssc.get_by_code(sess, ssc_code)
156
+ ssc_code = None
158
157
 
159
158
  es_code = add_arg(args, "Energisation Status", vals, 14)
160
159
  if es_code == NO_CHANGE:
@@ -162,11 +161,11 @@ def general_import_era(sess, action, vals, args):
162
161
  else:
163
162
  es = EnergisationStatus.get_by_code(sess, es_code)
164
163
 
165
- properties = add_arg(args, "Properties", vals, 15)
166
- if properties == NO_CHANGE:
167
- properties = loads(era.properties)
164
+ dtc_meter_type_code = add_arg(args, "DTC Meter Type", vals, 15)
165
+ if dtc_meter_type_code == NO_CHANGE:
166
+ dtc_meter_type = era.dtc_meter_type
168
167
  else:
169
- properties = loads(properties)
168
+ dtc_meter_type = DtcMeterType.get_by_code(sess, dtc_meter_type_code)
170
169
 
171
170
  imp_mpan_core = add_arg(args, "Import MPAN Core", vals, 16)
172
171
  imp_llfc_code = None
@@ -266,9 +265,9 @@ def general_import_era(sess, action, vals, args):
266
265
  mtc_code,
267
266
  cop,
268
267
  comm,
269
- ssc,
268
+ ssc_code,
270
269
  es,
271
- properties,
270
+ dtc_meter_type,
272
271
  imp_mpan_core,
273
272
  imp_llfc_code,
274
273
  imp_supplier_contract,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1730306906.0.0
3
+ Version: 1731435800.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/general_import.py,sha256=l3EHq9zG9Vfl5Ee6XTVrC1nusXo4YGGB4VBmZ_JaJR8,65798
7
+ chellow/general_import.py,sha256=Ia2Y40NEwqOYBHUwafJRcI34EO0WMX6FSBQJtGHeY0M,65874
8
8
  chellow/models.py,sha256=9LLROzS6gXZGICk0ITXhCyTtKaIY7HW4bMqWg4Mc-xw,244221
9
9
  chellow/national_grid.py,sha256=czwIZqzJndSGhEMQ5YzI6hRBhvjkM6VRVYXybf4_KXg,4377
10
10
  chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
@@ -58,7 +58,7 @@ chellow/e/bill_parsers/gdf_csv.py,sha256=ZfK3Oc6oP28p_P9DIevLNB_zW2WLcEJ3Lvb1gL3
58
58
  chellow/e/bill_parsers/haven_csv.py,sha256=0uENq8IgVNqdxfBQMBxLTSZWCOuDHXZC0xzk52SbfyE,13652
59
59
  chellow/e/bill_parsers/haven_edi.py,sha256=YGPHRxPOhje9s32jqPHHELni2tooOYj3cMC_qaZVPq4,16107
60
60
  chellow/e/bill_parsers/haven_edi_tprs.py,sha256=ZVX9CCqUybsot_Z0BEOJPvl9x5kSr7fEWyuJXvZDcz4,11841
61
- chellow/e/bill_parsers/mm.py,sha256=56_nfXNrt_ZZRwoHnj5xTi6Emh9I2wY4JJSaNxmwcCc,10038
61
+ chellow/e/bill_parsers/mm.py,sha256=zeNF5F8uduQeEFjYOm5lfMS-DO3JjTB7oarA3H_Si5s,10019
62
62
  chellow/e/bill_parsers/nonsettlement_dc_stark_xlsx.py,sha256=yogXTuQHGRL7IiqvRWr2C9V24ez1j9Yx0128UygPE_k,4723
63
63
  chellow/e/bill_parsers/settlement_dc_stark_xlsx.py,sha256=PlEqCZuJ9DfQXeeYQ64jtf3ML7sUt_tt61QOOTnkE5c,6380
64
64
  chellow/e/bill_parsers/sse_edi.py,sha256=L85DOfNkqexeEIEr8pCBn_2sHJI-zEaw6cogpE3YyYM,15204
@@ -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-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,,
380
+ chellow-1731435800.0.0.dist-info/METADATA,sha256=ilPn6kcxryT74lMCin7HXAJqf48jbjfuyV1Y3qmf9dA,12204
381
+ chellow-1731435800.0.0.dist-info/WHEEL,sha256=WJ9WQ4-pUYxfD_tEj5GvKSG9KSULNumqkTQdolV8mME,87
382
+ chellow-1731435800.0.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.25.0
2
+ Generator: hatchling 1.26.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any