chellow 1678873939.0.0__py3-none-any.whl → 1678964984.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.

@@ -16,7 +16,7 @@
16
16
  {% endblock %}
17
17
 
18
18
  {% block content %}
19
- <table>
19
+ <table class="sticky">
20
20
  <tr>
21
21
  <th>Reference</th>
22
22
  <td>{{g_batch.reference}}</td>
@@ -54,6 +54,7 @@
54
54
  <h4 id="latest">Latest Imported Files</h4>
55
55
 
56
56
  <table>
57
+ <caption>Electricity</caption>
57
58
  <tbody>
58
59
  <tr>
59
60
  <th>MDD Version</th>
@@ -98,6 +99,78 @@
98
99
  </table>
99
100
  </td>
100
101
  </tr>
102
+ <tr>
103
+ <th>TNUoS Spreadsheet</th>
104
+ <td>
105
+ <table>
106
+ <thead>
107
+ <tr>
108
+ <th>Start Date</th>
109
+ <th>File Name</th>
110
+ </tr>
111
+ </thead>
112
+ <tbody>
113
+ {% for rs in tnuos_rs %}
114
+ {% set script = rs.make_script() %}
115
+ <tr>
116
+ <td>{{rs.start_date|hh_format}}</td>
117
+ <td>{{script.a_file_name}}</td>
118
+ </tr>
119
+ {% endfor %}
120
+ </tbody>
121
+ </table>
122
+ </td>
123
+ </tr>
124
+ </tbody>
125
+ </table>
126
+
127
+ <table>
128
+ <caption>Gas</caption>
129
+ <tbody>
130
+ <tr>
131
+ <th>NTS Spreadsheet</th>
132
+ <td>
133
+ <table>
134
+ <thead>
135
+ <tr>
136
+ <th>Start Date</th>
137
+ <th>File Name</th>
138
+ </tr>
139
+ </thead>
140
+ <tbody>
141
+ {% for rs in nts_rs %}
142
+ {% set script = rs.make_script() %}
143
+ <tr>
144
+ <td>{{rs.start_date|hh_format}}</td>
145
+ <td>{{script.a_file_name}}</td>
146
+ </tr>
147
+ {% endfor %}
148
+ </tbody>
149
+ </table>
150
+ </td>
151
+ </tr>
152
+ <tr>
153
+ <th>DN Spreadsheet</th>
154
+ <td>
155
+ <table>
156
+ <thead>
157
+ <tr>
158
+ <th>Start Date</th>
159
+ <th>File Name</th>
160
+ </tr>
161
+ </thead>
162
+ <tbody>
163
+ {% for rs in dn_rs %}
164
+ {% set script = rs.make_script() %}
165
+ <tr>
166
+ <td>{{rs.start_date|hh_format}}</td>
167
+ <td>{{script.a_file_name}}</td>
168
+ </tr>
169
+ {% endfor %}
170
+ </tbody>
171
+ </table>
172
+ </td>
173
+ </tr>
101
174
  </tbody>
102
175
  </table>
103
176
 
chellow/views.py CHANGED
@@ -78,6 +78,7 @@ from chellow.models import (
78
78
  GContract,
79
79
  GEra,
80
80
  GExitZone,
81
+ GRateScript,
81
82
  GReadingFrequency,
82
83
  GUnit,
83
84
  GeneratorType,
@@ -2129,7 +2130,7 @@ def rate_server_get():
2129
2130
  config = Contract.get_non_core_by_name(g.sess, "configuration")
2130
2131
  props = config.make_properties()
2131
2132
  now_ct = ct_datetime_now()
2132
- fy_year = now_ct.year if now_ct.year > 3 else now_ct.year - 1
2133
+ fy_year = now_ct.year if now_ct.month > 3 else now_ct.year - 1
2133
2134
  fy_start = to_utc(ct_datetime(fy_year, 4, 1))
2134
2135
  dno_rs = g.sess.execute(
2135
2136
  select(RateScript)
@@ -2138,6 +2139,37 @@ def rate_server_get():
2138
2139
  .where(MarketRole.code == "R", RateScript.start_date >= fy_start)
2139
2140
  .order_by(Contract.name, RateScript.start_date.desc())
2140
2141
  ).scalars()
2142
+ tnuos_rs = g.sess.execute(
2143
+ select(RateScript)
2144
+ .join(RateScript.contract)
2145
+ .join(MarketRole)
2146
+ .where(
2147
+ MarketRole.code == "Z",
2148
+ RateScript.start_date >= fy_start,
2149
+ Contract.name == "tnuos",
2150
+ )
2151
+ .order_by(RateScript.start_date.desc())
2152
+ ).scalars()
2153
+ nts_rs = g.sess.execute(
2154
+ select(GRateScript)
2155
+ .join(GRateScript.g_contract)
2156
+ .where(
2157
+ GContract.is_industry == true(),
2158
+ GRateScript.start_date >= fy_start,
2159
+ GContract.name == "nts_commodity",
2160
+ )
2161
+ .order_by(GRateScript.start_date.desc())
2162
+ ).scalars()
2163
+ dn_rs = g.sess.execute(
2164
+ select(GRateScript)
2165
+ .join(GRateScript.g_contract)
2166
+ .where(
2167
+ GContract.is_industry == true(),
2168
+ GRateScript.start_date >= fy_start,
2169
+ GContract.name == "dn",
2170
+ )
2171
+ .order_by(GRateScript.start_date.desc())
2172
+ ).scalars()
2141
2173
 
2142
2174
  return render_template(
2143
2175
  "rate_server.html",
@@ -2145,6 +2177,9 @@ def rate_server_get():
2145
2177
  config_state=config.make_state(),
2146
2178
  config_properties=props.get("rate_server", {}),
2147
2179
  dno_rs=dno_rs,
2180
+ tnuos_rs=tnuos_rs,
2181
+ nts_rs=nts_rs,
2182
+ dn_rs=dn_rs,
2148
2183
  )
2149
2184
 
2150
2185
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chellow
3
- Version: 1678873939.0.0
3
+ Version: 1678964984.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)
@@ -10,7 +10,7 @@ chellow/proxy.py,sha256=Mzssi9nTf6s_G4RSn8k5oAHqzVYIxMsfbudj1amYucI,1387
10
10
  chellow/rate_server.py,sha256=Ur9iT9InmUuGVSUZuuy3gQJcTbsTD4ZgvN0yhn6wRjY,4226
11
11
  chellow/testing.py,sha256=rFkic1tj6IQ_QGctfpi-9qNle5WnshUX720ZGOSaoNQ,3915
12
12
  chellow/utils.py,sha256=IHC4Pcd_9CRbmJXAOlDvTyAcUoaWeLSH37zgjqVYYl4,18981
13
- chellow/views.py,sha256=7THhdijzXuXH1i8QZA9SXhaVJMpyn1Irg3vFfeyBw4Q,80910
13
+ chellow/views.py,sha256=3RddLzrWoP1MR9vhOFikNkuLSSe9FGP4xRaaQZakqdM,81969
14
14
  chellow/e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  chellow/e/aahedc.py,sha256=DUrYAlrn4jzf6y6C2wivxlFosdVIibG69BWy_KMekGM,706
16
16
  chellow/e/bill_importer.py,sha256=OhZKRB8G001Mj14TILgSJMRobGI7KDazFYepgSgKlK8,7069
@@ -122,7 +122,7 @@ chellow/templates/non_core_rate_script.html,sha256=CqGnuWdzhk_o_2xNFcF8rgk0p7SNh
122
122
  chellow/templates/non_core_rate_script_add.html,sha256=Qx8_cYFRQZrXSyR3uf_8OxUAUz3PqyYc4V11lTU18sE,690
123
123
  chellow/templates/non_core_rate_script_edit.html,sha256=14jFqalqmFg9_2LUlEy7Q4yUx4pVGTHc9fbYnpm-3Y8,1868
124
124
  chellow/templates/object_summary.html,sha256=VGCAAYcWTzgNfL0mxEef2Fa8dP3FcBhzj0fmF82_S4I,244
125
- chellow/templates/rate_server.html,sha256=l3VhIRasadVS5zP0cz3QZQzkso4pZrr7llWymbbJZAI,2504
125
+ chellow/templates/rate_server.html,sha256=LWlaDc-x0rGqgOTYMOc_JQG9lNTRY_fx3vlsFIB_jvI,3991
126
126
  chellow/templates/report_run.html,sha256=O_wjIu43S-mKVyZyku3dJJdvyck3rAgEdhw59TsCcK0,4040
127
127
  chellow/templates/report_run_asset_comparison.html,sha256=VYCCUmIC7Mfe7uuaAHb6ihiK6zsqeTlQbzgtzLqR3zg,2305
128
128
  chellow/templates/report_run_bill_check.html,sha256=eL9XiZwmeXerO1Q6YWJdKtu4ELp5GojwIg1eVT_HZvc,6330
@@ -304,7 +304,7 @@ chellow/templates/e/supply_post.html,sha256=o4BBLCtazj-AMCieclBDHNk2jN1G1N9MABXL
304
304
  chellow/templates/e/supply_virtual_bill.html,sha256=fAexhs9brfZ_hMb52uMqSQRe8lHMde7qi0GGKav0Tq0,1239
305
305
  chellow/templates/e/tpr.html,sha256=cdUan1kf9dc3Gg0SrvarMrEj986_D3XnKtXNVQeG1TQ,1452
306
306
  chellow/templates/e/tprs.html,sha256=jk1jm8CTcO3zYOOZFu9XOOLSG_ZFAgblReh-Di-bkug,258
307
- chellow/templates/g/batch.html,sha256=0o6S51chVWGUNSFb3wPuXG1WmTrTsuHkzlfw3e-uOAA,3487
307
+ chellow/templates/g/batch.html,sha256=IC29PozsT45bfqkXdqrzWshTuh8wvkLY3-X6C2-2hWU,3502
308
308
  chellow/templates/g/batch_add.html,sha256=WEK6NAvxsRd0gmJOqYSBS5ehZKVahbX49uiHAoyCwhg,1035
309
309
  chellow/templates/g/batch_edit.html,sha256=-ec5u4-2bfHuL4r5IXq0lCqJBeAJNusDYVzUwqyb6R4,2132
310
310
  chellow/templates/g/batches.html,sha256=mnzLroYfhwvL5gFK1PNtI-vS7GcDtcggNd0E15Shtfw,730
@@ -348,6 +348,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
348
348
  chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
349
349
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
350
350
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
351
- chellow-1678873939.0.0.dist-info/METADATA,sha256=rDaGMH8sKq7Z1ikf14MuiR1MOb342_GFO7vdy3BKT64,12132
352
- chellow-1678873939.0.0.dist-info/WHEEL,sha256=Fd6mP6ydyRguakwUJ05oBE7fh2IPxgtDN9IwHJ9OqJQ,87
353
- chellow-1678873939.0.0.dist-info/RECORD,,
351
+ chellow-1678964984.0.0.dist-info/METADATA,sha256=4tDZvwo8URVeGIbuC8KMIq1QZ9DXL7p4rH9ybfeA1vo,12132
352
+ chellow-1678964984.0.0.dist-info/WHEEL,sha256=Fd6mP6ydyRguakwUJ05oBE7fh2IPxgtDN9IwHJ9OqJQ,87
353
+ chellow-1678964984.0.0.dist-info/RECORD,,