chellow 1713259114.0.0__py3-none-any.whl → 1713275535.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
@@ -420,7 +420,7 @@ def channel_snag_edit_post(snag_id):
420
420
 
421
421
  @e.route("/comms")
422
422
  def comms_get():
423
- comms = g.sess.execute(select(Cop).order_by(Cop.code)).scalars()
423
+ comms = g.sess.execute(select(Comm).order_by(Comm.code)).scalars()
424
424
  return render_template("comms.html", comms=comms)
425
425
 
426
426
 
chellow/general_import.py CHANGED
@@ -1255,8 +1255,12 @@ def general_import_supply(sess, action, vals, args):
1255
1255
  cop = Cop.get_by_code(sess, cop_code)
1256
1256
  comm_code = add_arg(args, "Comms Type", vals, 16)
1257
1257
  comm = Comm.get_by_code(sess, comm_code)
1258
- ssc_code = add_arg(args, "Standard Settlement Configuration", vals, 17)
1259
- ssc = Ssc.get_by_code(sess, ssc_code) if len(ssc_code) > 0 else None
1258
+ ssc_code_str = add_arg(args, "Standard Settlement Configuration", vals, 17)
1259
+ if len(ssc_code_str) > 0:
1260
+ ssc = Ssc.get_by_code(sess, ssc_code_str, start_date)
1261
+ ssc_code = ssc.code
1262
+ else:
1263
+ ssc_code = None
1260
1264
  energisation_status_code = add_arg(args, "Energisation Status", vals, 18)
1261
1265
  energisation_status = EnergisationStatus.get_by_code(
1262
1266
  sess, energisation_status_code
@@ -1340,7 +1344,7 @@ def general_import_supply(sess, action, vals, args):
1340
1344
  mtc_code,
1341
1345
  cop,
1342
1346
  comm,
1343
- ssc,
1347
+ ssc_code,
1344
1348
  energisation_status,
1345
1349
  properties,
1346
1350
  imp_mpan_core,
chellow/models.py CHANGED
@@ -2845,44 +2845,21 @@ class MtcSsc(Base, PersistentClass):
2845
2845
  mtc_llfc_sscs = relationship("MtcLlfcSsc", backref="mtc_ssc")
2846
2846
  __table_args__ = (UniqueConstraint("mtc_participant_id", "ssc_id", "valid_from"),)
2847
2847
 
2848
- def __init__(
2849
- self,
2850
- mtc_participant,
2851
- ssc,
2852
- valid_from,
2853
- valid_to,
2854
- ):
2848
+ def __init__(self, mtc_participant, ssc, valid_from, valid_to):
2855
2849
  self.mtc_participant = mtc_participant
2856
2850
  self.ssc = ssc
2857
2851
  self.valid_from = valid_from
2858
- self.update(
2859
- valid_to,
2860
- )
2852
+ self.update(valid_to)
2861
2853
 
2862
- def update(
2863
- self,
2864
- valid_to,
2865
- ):
2854
+ def update(self, valid_to):
2866
2855
  self.valid_to = valid_to
2867
2856
 
2868
2857
  if hh_after(self.valid_from, valid_to):
2869
2858
  raise BadRequest("The valid_from date can't be after the valid_to date.")
2870
2859
 
2871
2860
  @classmethod
2872
- def insert(
2873
- cls,
2874
- sess,
2875
- mtc_participant,
2876
- ssc,
2877
- valid_from,
2878
- valid_to,
2879
- ):
2880
- mtc_ssc = cls(
2881
- mtc_participant,
2882
- ssc,
2883
- valid_from,
2884
- valid_to,
2885
- )
2861
+ def insert(cls, sess, mtc_participant, ssc, valid_from, valid_to):
2862
+ mtc_ssc = cls(mtc_participant, ssc, valid_from, valid_to)
2886
2863
  sess.add(mtc_ssc)
2887
2864
  sess.flush()
2888
2865
  return mtc_ssc
@@ -2924,44 +2901,21 @@ class MtcLlfcSsc(Base, PersistentClass):
2924
2901
  mtc_llfc_ssc_pcs = relationship("MtcLlfcSscPc", backref="mtc_llfc_ssc")
2925
2902
  __table_args__ = (UniqueConstraint("mtc_ssc_id", "llfc_id", "valid_from"),)
2926
2903
 
2927
- def __init__(
2928
- self,
2929
- mtc_ssc,
2930
- llfc,
2931
- valid_from,
2932
- valid_to,
2933
- ):
2904
+ def __init__(self, mtc_ssc, llfc, valid_from, valid_to):
2934
2905
  self.mtc_ssc = mtc_ssc
2935
2906
  self.llfc = llfc
2936
2907
  self.valid_from = valid_from
2937
- self.update(
2938
- valid_to,
2939
- )
2908
+ self.update(valid_to)
2940
2909
 
2941
- def update(
2942
- self,
2943
- valid_to,
2944
- ):
2910
+ def update(self, valid_to):
2945
2911
  self.valid_to = valid_to
2946
2912
 
2947
2913
  if hh_after(self.valid_from, valid_to):
2948
2914
  raise BadRequest("The valid_from date can't be after the valid_to date.")
2949
2915
 
2950
2916
  @classmethod
2951
- def insert(
2952
- cls,
2953
- sess,
2954
- mtc_ssc,
2955
- llfc,
2956
- valid_from,
2957
- valid_to,
2958
- ):
2959
- mtc_llfc_ssc = cls(
2960
- mtc_ssc,
2961
- llfc,
2962
- valid_from,
2963
- valid_to,
2964
- )
2917
+ def insert(cls, sess, mtc_ssc, llfc, valid_from, valid_to):
2918
+ mtc_llfc_ssc = cls(mtc_ssc, llfc, valid_from, valid_to)
2965
2919
  sess.add(mtc_llfc_ssc)
2966
2920
  sess.flush()
2967
2921
  return mtc_llfc_ssc
@@ -107,6 +107,7 @@
107
107
  <li><a href="/e/sscs" title="SSCs">SSCs</a></li>
108
108
  <li><a href="/e/gsp_groups" title="GSP Groups">GSP Groups</a></li>
109
109
  <li><a href="/e/cops" title="CoPs">CoPs</a></li>
110
+ <li><a href="/e/comms" title="Comms">Comms</a></li>
110
111
  <li><a href="/bill_types" title="Bill Types">Bill Types</a></li>
111
112
  <li><a href="/e/read_types" title="Read Types">Read Types</a></li>
112
113
  <li>
@@ -5,7 +5,7 @@
5
5
  {% endblock %}
6
6
 
7
7
  {% block nav %}
8
- <a href="/comms">Comms</a> &raquo; {{comms.description}}
8
+ <a href="/e/comms">Comms</a> &raquo; {{comm.description}}
9
9
  {% endblock %}
10
10
 
11
11
  {% block content %}
@@ -13,11 +13,11 @@
13
13
  <table>
14
14
  <tr>
15
15
  <th>Code</th>
16
- <td>{{comms.code}}</td>
16
+ <td>{{comm.code}}</td>
17
17
  </tr>
18
18
  <tr>
19
19
  <th>Description</th>
20
- <td>{{comms.description}}</td>
20
+ <td>{{comm.description}}</td>
21
21
  </tr>
22
22
  </table>
23
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1713259114.0.0
3
+ Version: 1713275535.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,8 +4,8 @@ chellow/bank_holidays.py,sha256=T_utYMwe_g1dz5X-aOTdIPryg49SvB7QsWM1yphlqG8,4423
4
4
  chellow/commands.py,sha256=ESBe9ZWj1c3vdZgqMZ9gFvYAB3hRag2R1PzOwuw9yFo,1302
5
5
  chellow/dloads.py,sha256=5SmP-0QPK6xCkd_wjIWh_8FAzN5OxNHCzyEQ1Xb-Y-M,5256
6
6
  chellow/edi_lib.py,sha256=het3R0DBGtXEo-Sy1zvXQuX9EWQ1X6Y33G4l1hYYuds,51859
7
- chellow/general_import.py,sha256=d_bDfUW8VulF6FqT5q7jiQ0a_NmVpUVyzXNgNBLpn0k,65263
8
- chellow/models.py,sha256=9SDx150OdxFnw4tfpvLn2fB0NsqlrE57VqdRPYz9OnE,237335
7
+ chellow/general_import.py,sha256=Su_JW28Wb2fG3x8fAbNmvB_YAEPieO_arhlhp31DHD8,65369
8
+ chellow/models.py,sha256=POIL0dfwZFuqht7xHZaE6KJ7fk4kxMZC2aXzgg5kEFY,236921
9
9
  chellow/national_grid.py,sha256=uxcv0qisHPyzw9AVIYPzsRqwt2XPAcZL-SBR12qcrS0,4364
10
10
  chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
11
11
  chellow/rate_server.py,sha256=vNuKzlr0lkAzZ4zG7zboStoo92_6iLKAxbw1yZ-ucII,5626
@@ -38,7 +38,7 @@ chellow/e/system_price.py,sha256=3cPWohHmmBI9v7fENLBzXQkpAeC3r0s5xV29Nmr6k_E,583
38
38
  chellow/e/tlms.py,sha256=kHAy2A2d1Mma7x4GdNDyrzscJd5DpJtDBYiZEg241Dw,8538
39
39
  chellow/e/tnuos.py,sha256=KoMPJDIXfE4zwhSDuywGF1ooxjTYLVjtF7BkSFm6X24,4158
40
40
  chellow/e/triad.py,sha256=S6LEMHvUKhAZe0-yfLIRciYDZ8IKMn1jh1TmmsbQD3s,13588
41
- chellow/e/views.py,sha256=8Rmm6XuNGXACFSSX_LpomyTC4oS2-nljRlisjEyUVJ4,213975
41
+ chellow/e/views.py,sha256=ccA5ebQA8Oefwi9L71rbStvHenDMB4rhAu0iRMandLc,213977
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
@@ -106,7 +106,7 @@ chellow/static/images/favicon_test.svg,sha256=HnLS_BjNt8M0Ikko5Z-f_E2aed7y6RRU6j
106
106
  chellow/static/images/logo.png,sha256=XMW2XwukTicKVJ46E2SnbHJYh77uFLVYlwR4xN43YKg,1569
107
107
  chellow/static/js/htmx.min.js,sha256=_TRunIY51GJIk_xFXyQHoJtBgwFzbdGOu7B3ZGN_tHg,42819
108
108
  chellow/templates/403.html,sha256=49f75OKp0eS8wi2D1YBhdv7bKTNtfs6BTXZPXlxCbDs,344
109
- chellow/templates/base.html,sha256=v14n4jr4eGYG9i7IduibJKCgNLbPQrCQLCGc416SK7M,6520
109
+ chellow/templates/base.html,sha256=tilhJHj1oTB7H802TSobnuIDip9o2Ws4zJSleM3bgUM,6581
110
110
  chellow/templates/bill_type.html,sha256=dNNEaQ9ZVghLCAvxQ6IDalw0K0-BIjEQap6u1zu6TW8,402
111
111
  chellow/templates/bill_types.html,sha256=YKy6cnzzch756dlTnl01ZU0K5NVuTZtBJQV32ZphHvc,471
112
112
  chellow/templates/chain.html,sha256=iOnSoDQOO_-1tfcxUHQKDAUnV4QbCYu5PPNmS4RkOg4,775
@@ -159,7 +159,7 @@ chellow/templates/e/channel_edit.html,sha256=OUkdiS2NBQ_w4gmxRxXAcRToM5BT8DWWJrt
159
159
  chellow/templates/e/channel_snag.html,sha256=wBJ5KBfeJdAeRmaB0qu0AD9Z4nM5fn6tJ_8bNqTWtoo,1477
160
160
  chellow/templates/e/channel_snag_edit.html,sha256=sUFI4Ml3F1B35x8_t_Pz3hWuQN9Xtxr3kt4u8hdxNwY,1911
161
161
  chellow/templates/e/channel_snags.html,sha256=1dzC5FoCJ8bg6PBsQrVqGLn-DbPE2EHQklfm_pg3w0c,2899
162
- chellow/templates/e/comm.html,sha256=te-e05H2RiVXCgMOFizaL_yAmK_XZXxUUEB4Y9syymo,384
162
+ chellow/templates/e/comm.html,sha256=DSlAaDg1r4KYq9VUgDtt2lgW6apZjZvwhMujIJINmps,383
163
163
  chellow/templates/e/comms.html,sha256=bUXZePnMfpKk1E71qLGOSkx8r3GxdPPD_-MosIXXq4s,434
164
164
  chellow/templates/e/cop.html,sha256=ULv7ALFJHMUgPX96hQNm2irc3edtKYHS6fYAxvmzj8M,376
165
165
  chellow/templates/e/cops.html,sha256=2uFpVZOZtEe8fBE9NU-hElVvT_gTLk9peHNfPKW0PAY,425
@@ -363,6 +363,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
363
363
  chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
364
364
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
365
365
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
366
- chellow-1713259114.0.0.dist-info/METADATA,sha256=0JTJ-zEXssG25w46B8KcvxriKareIsEE-kKNQW4JvuI,12205
367
- chellow-1713259114.0.0.dist-info/WHEEL,sha256=K0BPUNF1N3kQ9olb8aVEtkObePEjdr2JOLT1N83EVws,87
368
- chellow-1713259114.0.0.dist-info/RECORD,,
366
+ chellow-1713275535.0.0.dist-info/METADATA,sha256=deT9VNOc5rczl9Wi1rWFkM5DP5iaUsrzz3zpqim0Je4,12205
367
+ chellow-1713275535.0.0.dist-info/WHEEL,sha256=K0BPUNF1N3kQ9olb8aVEtkObePEjdr2JOLT1N83EVws,87
368
+ chellow-1713275535.0.0.dist-info/RECORD,,