chellow 1727260897.0.0__py3-none-any.whl → 1727274025.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/gas/views.py CHANGED
@@ -129,12 +129,11 @@ def supply_get(g_supply_id):
129
129
  try:
130
130
  g_era_bundles = []
131
131
  g_supply = GSupply.get_by_id(g.sess, g_supply_id)
132
- g_eras = (
133
- g.sess.query(GEra)
134
- .filter(GEra.g_supply == g_supply)
132
+ g_eras = g.sess.scalars(
133
+ select(GEra)
134
+ .where(GEra.g_supply == g_supply)
135
135
  .order_by(GEra.start_date.desc())
136
- .all()
137
- )
136
+ ).all()
138
137
  for g_era in g_eras:
139
138
  physical_site = (
140
139
  g.sess.query(Site)
@@ -242,22 +242,22 @@
242
242
  {% endif %}
243
243
  >
244
244
  <td rowspan="{{rows_high}}">
245
- <a href="/g/bills/{{g_bill.id}}">{{g_bill.id}}</a>
245
+ <a href="/g/bills/{{g_bill.id}}">view</a>
246
246
  </td>
247
247
  <td rowspan="{{rows_high}}">
248
- <a
248
+ <span
249
249
  title="{{g_bill.start_date|hh_format}}"
250
- >{{g_bill.start_date|hh_format('date')}}</a>
250
+ >{{g_bill.start_date|hh_format('date')}}</span>
251
251
  </td>
252
252
  <td rowspan="{{rows_high}}">
253
- <a
253
+ <span
254
254
  title="{{g_bill.finish_date|hh_format}}"
255
- >{{g_bill.finish_date|hh_format('date')}}</a>
255
+ >{{g_bill.finish_date|hh_format('date')}}</span>
256
256
  </td>
257
257
  <td rowspan="{{rows_high}}">
258
- <a
258
+ <span
259
259
  title="{{g_bill.issue_date|hh_format}}"
260
- >{{g_bill.issue_date|hh_format('date')}}</a>
260
+ >{{g_bill.issue_date|hh_format('date')}}</span>
261
261
  </td>
262
262
  <td rowspan="{{rows_high}}">
263
263
  <a
@@ -287,26 +287,34 @@
287
287
  {% endif %}
288
288
  <td style="border-right: none;">
289
289
  {% if read %}
290
- <a
290
+ <span
291
291
  title="{{read.prev_date|hh_format}} {{read.msn }}"
292
- >{{read.prev_value}}</a>
292
+ >{{read.prev_value}}</span>
293
293
  {% endif %}
294
294
  </td>
295
295
  <td style="border-left: none; text-align: right;">
296
296
  {% if read %}
297
- {{ read.prev_type.code }}
297
+ <a
298
+ href="/g/read_types/{{read.prev_type.id}}"
299
+ title="{{read.prev_type.description}}"
300
+ >
301
+ {{ read.prev_type.code }}
302
+ </a>
298
303
  {% endif %}
299
304
  </td>
300
305
  <td style="border-right: none;">
301
306
  {% if read %}
302
- <a
307
+ <span
303
308
  title="{{read.pres_date|hh_format}} {{read.msn}}"
304
- >{{read.pres_value}}</a>
309
+ >{{read.pres_value}}</span>
305
310
  {% endif %}
306
311
  </td>
307
312
  <td style="border-left: none; text-align: right;">
308
313
  {% if read %}
309
- {{read.pres_type.code}}
314
+ <a
315
+ href="/g/read_types/{{read.pres_type.id}}"
316
+ title="{{read.pres_type.description}}"
317
+ >{{read.pres_type.code}}</a>
310
318
  {% endif %}
311
319
  </td>
312
320
  {% if not loop.first %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1727260897.0.0
3
+ Version: 1727274025.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)
@@ -67,7 +67,7 @@ chellow/gas/cv.py,sha256=4cdYYQ8Qak6NeYdBCB4YaQ0jX8-UkaydIIdibCQuXxM,7344
67
67
  chellow/gas/dn_rate_parser.py,sha256=Mq8rAcUEUxIQOks59bsCKl8GrefvoHbrTCHqon9N0z0,11340
68
68
  chellow/gas/engine.py,sha256=jT7m6vddi5GnWd51wCYEVhBS-LZEn1T9ggZX7Y9HGK0,25263
69
69
  chellow/gas/transportation.py,sha256=Bkg8TWOs-v0ES-4qqwbleiOhqbE_t2KauUx9JYMZELM,5300
70
- chellow/gas/views.py,sha256=vwGz4Go2qcebH9Pm2_H0UtJbrtpUIMvxgn5JYc2Zn3g,59027
70
+ chellow/gas/views.py,sha256=R4Ky8syioWSQJLTuSKVLsc266eDv8a6WEo_e60u_4ug,59021
71
71
  chellow/reports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
72
  chellow/reports/report_109.py,sha256=FmRWG8wQC97cj0nqQH7mrfbYesRIKWXQLh6ERHvtHrU,11212
73
73
  chellow/reports/report_111.py,sha256=rgwoOPfvbfwIC_IjBqs2e8umF_YTtpyejLrX_uCgyHE,28145
@@ -359,13 +359,13 @@ chellow/templates/g/supplier_rate_script.html,sha256=e4dwskWTQcLv6qyX150VUeuaUvE
359
359
  chellow/templates/g/supplier_rate_script_add.html,sha256=zMjTkjupOsHFu-peUXL4IKjjc2OaSL-2ah4T9OdKp_o,620
360
360
  chellow/templates/g/supplier_rate_script_edit.html,sha256=GoUqXf52gWEH1iApmNdxOcKLItzpA-o7iQPQ1_in9BA,1950
361
361
  chellow/templates/g/supplies.html,sha256=oEAEfZaAuKv7EA6fd3blWjPwv_XKoNHLPlkRJ_afZHs,1267
362
- chellow/templates/g/supply.html,sha256=gr4Ivz5JkwmP09GPuWgwl6hhie1dJcAyyaAU0TKo5JE,10713
362
+ chellow/templates/g/supply.html,sha256=HMR2haS4-k24rGqWApA74Ufi_IODN0oNIa9d7L9Xe1o,11001
363
363
  chellow/templates/g/supply_edit.html,sha256=F2Ip4xCXLl4eFiRjMLZyUMIiznWw97GF7mN_50QAEWA,1653
364
364
  chellow/templates/g/supply_note_add.html,sha256=zWwppQTxBfN7Dw6Cgr330mw7SgDRoTcaIdAucNisZRE,658
365
365
  chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1nAPevz-AgkhQ,1036
366
366
  chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
367
367
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
368
368
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
369
- chellow-1727260897.0.0.dist-info/METADATA,sha256=Fl_5KRGl6naC3Y--RgiWnvZHPRYOvRKXfEk1usWIdKg,12204
370
- chellow-1727260897.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
371
- chellow-1727260897.0.0.dist-info/RECORD,,
369
+ chellow-1727274025.0.0.dist-info/METADATA,sha256=feQ4vMzLIgL6radY06s1TZ7qu60qhFpC_KvbVABRUcs,12204
370
+ chellow-1727274025.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
371
+ chellow-1727274025.0.0.dist-info/RECORD,,