chellow 1723459091.0.0__py3-none-any.whl → 1723718933.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.

@@ -259,12 +259,13 @@ def _process_site(
259
259
  ):
260
260
  for sname in ("kwh", "net-gbp"):
261
261
  month_data[f"{name}-{sname}"] = 0
262
- month_data["billed-import-kwh"] = 0
263
- for suf in ("net-gbp", "vat-gbp", "gross-gbp"):
264
- month_data[f"billed-import-{suf}"] = 0
265
- month_data[f"billed-supplier-import-{suf}"] = 0
266
- month_data[f"billed-dc-import-{suf}"] = 0
267
- month_data[f"billed-mop-import-{suf}"] = 0
262
+ for polarity in ("import", "export"):
263
+ month_data[f"billed-{polarity}-kwh"] = 0
264
+ for suf in ("net-gbp", "vat-gbp", "gross-gbp"):
265
+ month_data[f"billed-{polarity}-{suf}"] = 0
266
+ month_data[f"billed-supplier-{polarity}-{suf}"] = 0
267
+ month_data[f"billed-dc-{polarity}-{suf}"] = 0
268
+ month_data[f"billed-mop-{polarity}-{suf}"] = 0
268
269
 
269
270
  if imp_ss is not None:
270
271
  imp_supplier_contract = imp_ss.supplier_contract
@@ -286,7 +287,7 @@ def _process_site(
286
287
  month_data["import-3rd-party-kwh"] += kwh
287
288
  month_data["used-3rd-party-net-gbp"] += gbp
288
289
  month_data["used-3rd-party-kwh"] += kwh
289
- month_data["used-gbp"] += gbp
290
+ month_data["used-net-gbp"] += gbp
290
291
  month_data["used-kwh"] += kwh
291
292
  elif source_code == "3rd-party-reverse":
292
293
  month_data["export-3rd-party-net-gbp"] += gbp
@@ -1032,7 +1033,6 @@ def content(
1032
1033
  data_source_bill = Object()
1033
1034
  data_source_bill.start_date = month_start
1034
1035
  data_source_bill.finish_date = month_finish
1035
-
1036
1036
  for site in sites:
1037
1037
  if by_hh:
1038
1038
  sf = [
@@ -38,7 +38,7 @@
38
38
  <td>{{run.creator}}</td>
39
39
  <td>{{run.title}}</td>
40
40
  <td>{{run.state}}</td>
41
- <td>{{rows|length}}</td>
41
+ <td>{{rows|length}} (truncated at {{ROW_LIMIT}})</td>
42
42
  <td>
43
43
  {% if 'sum_difference' in summary %}
44
44
  {{"%.2f"|format(summary.sum_difference)}}</td>
chellow/views.py CHANGED
@@ -1341,12 +1341,12 @@ def report_run_get(run_id):
1341
1341
  q = q.filter(
1342
1342
  ReportRunRow.data["properties"]["is_checked"].as_boolean() == false()
1343
1343
  )
1344
-
1344
+ ROW_LIMIT = 200
1345
1345
  rows = (
1346
1346
  q.order_by(
1347
1347
  func.abs(ReportRunRow.data["values"][order_by].as_float()).desc()
1348
1348
  )
1349
- .limit(200)
1349
+ .limit(ROW_LIMIT)
1350
1350
  .all()
1351
1351
  )
1352
1352
  return render_template(
@@ -1357,6 +1357,7 @@ def report_run_get(run_id):
1357
1357
  elements=elements,
1358
1358
  element=element,
1359
1359
  hide_checked=hide_checked,
1360
+ ROW_LIMIT=ROW_LIMIT,
1360
1361
  )
1361
1362
 
1362
1363
  elif run.name == "asset_comparison":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1723459091.0.0
3
+ Version: 1723718933.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)
@@ -11,7 +11,7 @@ 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=nlX0JjJGTU8ydVFUK1d_oeexszOL3HIjZGouMRVg4Yc,79612
14
+ chellow/views.py,sha256=njFHK_sT9k5OQyAJoLUWGSzMiM5rLuusYjdmK0ijS3c,79674
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
@@ -78,7 +78,7 @@ chellow/reports/report_219.py,sha256=cA0lfJKnJg41Zc4_gZB1KUXZ9JeJo0TiTlu5jm1bdDM
78
78
  chellow/reports/report_231.py,sha256=uhO1algP7sibpZVaniqGs56HOCPCQeDO-Y-UfvFQwnI,5311
79
79
  chellow/reports/report_233.py,sha256=cIatj-HHYW_GNIRsji-DlsmYjt8rUdm_5xujPLOYL8U,4537
80
80
  chellow/reports/report_241.py,sha256=AlFmSHnfG2HWv_ICmWX7fNpPwLHjq7mo1QtOTjSKO3k,5384
81
- chellow/reports/report_247.py,sha256=KmigazTTyh6kGTnDylJZxfVVfZpJGPUVlCLPd46mVsw,46125
81
+ chellow/reports/report_247.py,sha256=LMq3QQ5h1ipTYRxiE79kbkDEMEZuNDjAHnXwWbECT6Y,46223
82
82
  chellow/reports/report_29.py,sha256=KDFjgrLBv4WbG9efCdu_geMR7gT_QV9N97Wfdt7aDc4,2736
83
83
  chellow/reports/report_291.py,sha256=rqBXy6s7hMeYWw-yNX6w_L5t2yz6rNEeos_4xO7wf90,7519
84
84
  chellow/reports/report_33.py,sha256=laVz-itDbJTdvC6LxLEeuY0eKpYx43Un4adiExPTEEE,16730
@@ -134,7 +134,7 @@ chellow/templates/object_summary.html,sha256=VGCAAYcWTzgNfL0mxEef2Fa8dP3FcBhzj0f
134
134
  chellow/templates/rate_server.html,sha256=SezuwdKhHRZ00-R_S6ttKiZ-nvRpwozV9QcIMf9StG8,5360
135
135
  chellow/templates/report_run.html,sha256=O_wjIu43S-mKVyZyku3dJJdvyck3rAgEdhw59TsCcK0,4040
136
136
  chellow/templates/report_run_asset_comparison.html,sha256=VYCCUmIC7Mfe7uuaAHb6ihiK6zsqeTlQbzgtzLqR3zg,2305
137
- chellow/templates/report_run_bill_check.html,sha256=yAVFBi0zdamnlRpO2VqKY3UAmAJchSjwSmrmaITLmEA,5055
137
+ chellow/templates/report_run_bill_check.html,sha256=H2ayoBL7EgKMq2Nwq5VjE_TNvcIKcqeCm0alQWLIw78,5084
138
138
  chellow/templates/report_run_ecoes_comparison.html,sha256=VmkT5ypWLP8qZS6NbDTC4yDaG7mnUlxZz7EV8xkHGZw,4086
139
139
  chellow/templates/report_run_row.html,sha256=bmtcdqJaS1CXpL0i8PuqvmeF98jKNYX5-mnQu-OuDKQ,3791
140
140
  chellow/templates/report_run_row_bill_check.html,sha256=aC2LMu_6NvmTN3ZdxHJPPPczyxPN6hg0F-PPcqIWUws,4683
@@ -365,6 +365,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
365
365
  chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
366
366
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
367
367
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
368
- chellow-1723459091.0.0.dist-info/METADATA,sha256=5gZoqYI4n575kdIiDxsGRg2h3Ex-9guCkXwhQOtsqnc,12241
369
- chellow-1723459091.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
370
- chellow-1723459091.0.0.dist-info/RECORD,,
368
+ chellow-1723718933.0.0.dist-info/METADATA,sha256=Pj9x-7DgnxlbYYRG35DTxqJVuCQvUJZF4yAxLjM8i_k,12241
369
+ chellow-1723718933.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
370
+ chellow-1723718933.0.0.dist-info/RECORD,,