chellow 1715266420.0.0__py3-none-any.whl → 1715279978.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
@@ -1174,7 +1174,7 @@ def dc_contract_edit_post(contract_id):
1174
1174
  name = req_str("name")
1175
1175
  charge_script = req_str("charge_script")
1176
1176
  party = Party.get_by_id(g.sess, party_id)
1177
- contract.update(name, party, charge_script, contract.properties)
1177
+ contract.update(name, party, charge_script, contract.make_properties())
1178
1178
  g.sess.commit()
1179
1179
  return chellow_redirect(f"/dc_contracts/{contract.id}", 303)
1180
1180
  except BadRequest as e:
chellow/models.py CHANGED
@@ -6651,6 +6651,20 @@ def insert_dtc_meter_types(sess):
6651
6651
  ("2CF", "Polyphase with APC that is compliant with SMETS2"),
6652
6652
  ("2CDF", "Polyphase with ALCS and APC that is compliant with SMETS2"),
6653
6653
  ("2CEF", "Polyphase with Boost Function and APC that is compliant with SMETS2"),
6654
+ (
6655
+ "S2ADE",
6656
+ "Single element meter with one or more ALCS and Boost Function that is "
6657
+ "compliant with SMETS2",
6658
+ ),
6659
+ (
6660
+ "S2BDE",
6661
+ "A twin element meter with one or more ALCS and Boost Function that is "
6662
+ "compliant with SMETS2",
6663
+ ),
6664
+ (
6665
+ "S2CD",
6666
+ "A polyphase meter with one or more ALCS that is compliant with SMETS2",
6667
+ ),
6654
6668
  ):
6655
6669
  DtcMeterType.insert(sess, code, desc)
6656
6670
 
@@ -7434,6 +7448,26 @@ def db_upgrade_46_to_47(sess, root_path):
7434
7448
  sess.execute(text("alter table era drop column properties;"))
7435
7449
 
7436
7450
 
7451
+ def db_upgrade_47_to_48(sess, root_path):
7452
+ for code, desc in (
7453
+ (
7454
+ "S2ADE",
7455
+ "Single element meter with one or more ALCS and Boost Function that is "
7456
+ "compliant with SMETS2",
7457
+ ),
7458
+ (
7459
+ "S2BDE",
7460
+ "A twin element meter with one or more ALCS and Boost Function that is "
7461
+ "compliant with SMETS2",
7462
+ ),
7463
+ (
7464
+ "S2CD",
7465
+ "A polyphase meter with one or more ALCS that is compliant with SMETS2",
7466
+ ),
7467
+ ):
7468
+ DtcMeterType.insert(sess, code, desc)
7469
+
7470
+
7437
7471
  upgrade_funcs = [None] * 18
7438
7472
  upgrade_funcs.extend(
7439
7473
  [
@@ -7466,6 +7500,7 @@ upgrade_funcs.extend(
7466
7500
  db_upgrade_44_to_45,
7467
7501
  db_upgrade_45_to_46,
7468
7502
  db_upgrade_46_to_47,
7503
+ db_upgrade_47_to_48,
7469
7504
  ]
7470
7505
  )
7471
7506
 
@@ -540,7 +540,6 @@ def _process(
540
540
  values["chellow_era_id"] = chellow_era_id
541
541
  report_run.insert_row(sess, "", titles, values, {})
542
542
  sess.commit()
543
- sess.expunge_all()
544
543
 
545
544
  for mpan_core in mpans:
546
545
  supply = Supply.get_by_mpan_core(sess, mpan_core)
@@ -29,7 +29,7 @@
29
29
 
30
30
  <form action="/e/channel_snags">
31
31
  <fieldset>
32
- <label>Show Channel Snags</label>
32
+ <legend>Show Channel Snags</legend>
33
33
  <input type="hidden" name="dc_contract_id" value="{{contract.id}}">
34
34
  <label>Hide snags &lt; days old</label>
35
35
  {{input_text('days_hidden', '0', 3, 3)}}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1715266420.0.0
3
+ Version: 1715279978.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)
@@ -5,7 +5,7 @@ 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
7
  chellow/general_import.py,sha256=l3EHq9zG9Vfl5Ee6XTVrC1nusXo4YGGB4VBmZ_JaJR8,65798
8
- chellow/models.py,sha256=Rq_ARe-MI73kalTW3Kpas-mTBdjFjBtaqSRAAn3SMzU,241085
8
+ chellow/models.py,sha256=ju7SyQEde5nsuLTylQv6VQD8TeGJ_lScOjOH6DU1TJg,242143
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=fg-Pf_9Hk3bXmC9riPQNGQxBvLvBa_WtNYdwDCjnCSg,5678
@@ -38,7 +38,7 @@ chellow/e/system_price.py,sha256=6w5J7bzwFAZubE2zdOFRiS8IIrVP8hkoIOaG2yCt-Ic,623
38
38
  chellow/e/tlms.py,sha256=M33D6YpMixu2KkwSCzDRM3kThLgShg8exp63Obo75l8,8905
39
39
  chellow/e/tnuos.py,sha256=XseYztPUsQXNKuBmystO2kzzwAG9ehCZgpGBTdgSk-A,4313
40
40
  chellow/e/triad.py,sha256=lIQj7EdUrcFwEqleuHZXYU_bfzIwNOqUVVxB3NPQt4A,13710
41
- chellow/e/views.py,sha256=iKnzFWNvANSB0yNDhZHo5nKw1Ptl6Q8KHuK003ZTDfg,215030
41
+ chellow/e/views.py,sha256=es1lQWgZjCcHQ7AR_98SM9hLJjX8UUarePuBHnkkJ_4,215037
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
@@ -92,7 +92,7 @@ chellow/reports/report_bills.py,sha256=AHW6tiZAOE0gXDfencPvemE4zqK6eTqfN8_bWQ4RT
92
92
  chellow/reports/report_csv_llfcs.py,sha256=OHSbP64lQ6dlAMcQYgvdANlA4lQyF0iBlwk7V9c9nuo,1944
93
93
  chellow/reports/report_csv_site_hh_data.py,sha256=T-clGDmYdn0ej7zZfL3kDp4Vyd82WzptxEzxx9KqAZg,4270
94
94
  chellow/reports/report_csv_site_snags.py,sha256=gG2sYQrLoIBwCoMUC8rhmAL7Kffh_rvNb9UOX7cYDko,2668
95
- chellow/reports/report_ecoes_comparison.py,sha256=s6d69cORezon-h3RmgewT8_cMpLrpMElmP2TnT-y7yY,21743
95
+ chellow/reports/report_ecoes_comparison.py,sha256=mInFX4UmrPnjO-nLarqrCmyLx6O0wlCd94AUN2JlqZQ,21716
96
96
  chellow/reports/report_g_monthly_duration.py,sha256=vI5FKAU8_oThjR5oflPZont7Z7sVAunr0qlMfJsaPJI,12004
97
97
  chellow/reports/report_g_supplies_snapshot.py,sha256=0M0x_0o0985Hu45gUJJJwzfx0DDOAuXBJ1UVUDbQ36g,4718
98
98
  chellow/reports/report_g_supply_virtual_bill.py,sha256=x_KtQ02dwgmXvAEUXJ1poK0BRwqxa-GcbJ5pddEina0,3694
@@ -158,7 +158,7 @@ chellow/templates/e/channel_add.html,sha256=X1hi0b-ZjchlQ2m7uZYCyqkqU-Qd1s3_5u4z
158
158
  chellow/templates/e/channel_edit.html,sha256=OUkdiS2NBQ_w4gmxRxXAcRToM5BT8DWWJrtQMFs-GUU,2198
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
- chellow/templates/e/channel_snags.html,sha256=1dzC5FoCJ8bg6PBsQrVqGLn-DbPE2EHQklfm_pg3w0c,2899
161
+ chellow/templates/e/channel_snags.html,sha256=57bVmu2SwetdpWQbImMykO-qgY7wXi6Y9plRqykOGy4,2901
162
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
@@ -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-1715266420.0.0.dist-info/METADATA,sha256=sBafR1NjQRgEambtrlc1xNw2rNtq1xGtoEUF9THC2Zw,12205
367
- chellow-1715266420.0.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
368
- chellow-1715266420.0.0.dist-info/RECORD,,
366
+ chellow-1715279978.0.0.dist-info/METADATA,sha256=orieA2aDGbd1HQ_Au3J-Buky6xGH89GWZ8wn7KXUv2k,12205
367
+ chellow-1715279978.0.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
368
+ chellow-1715279978.0.0.dist-info/RECORD,,