chellow 1742546814.0.0__py3-none-any.whl → 1742896763.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/reports/report_g_supplies_snapshot.py +2 -17
- {chellow-1742546814.0.0.dist-info → chellow-1742896763.0.0.dist-info}/METADATA +1 -1
- {chellow-1742546814.0.0.dist-info → chellow-1742896763.0.0.dist-info}/RECORD +4 -4
- {chellow-1742546814.0.0.dist-info → chellow-1742896763.0.0.dist-info}/WHEEL +0 -0
|
@@ -9,11 +9,7 @@ from sqlalchemy import or_
|
|
|
9
9
|
from sqlalchemy.orm import joinedload
|
|
10
10
|
from sqlalchemy.sql.expression import null
|
|
11
11
|
|
|
12
|
-
from werkzeug.exceptions import BadRequest
|
|
13
|
-
|
|
14
12
|
from chellow.dloads import open_file
|
|
15
|
-
from chellow.e.computer import contract_func
|
|
16
|
-
from chellow.gas.engine import GDataSource, forecast_date
|
|
17
13
|
from chellow.models import GEra, GSupply, Session
|
|
18
14
|
from chellow.utils import csv_make_val, req_date, req_int
|
|
19
15
|
|
|
@@ -44,8 +40,6 @@ def content(date, g_supply_id, user):
|
|
|
44
40
|
"soq",
|
|
45
41
|
)
|
|
46
42
|
)
|
|
47
|
-
fdate = forecast_date()
|
|
48
|
-
caches = {}
|
|
49
43
|
|
|
50
44
|
g_eras = (
|
|
51
45
|
sess.query(GEra, GSupply)
|
|
@@ -83,16 +77,7 @@ def content(date, g_supply_id, user):
|
|
|
83
77
|
g_supply_start_date = sup_g_eras[0].start_date
|
|
84
78
|
g_supply_finish_date = sup_g_eras[-1].finish_date
|
|
85
79
|
|
|
86
|
-
ds = GDataSource(sess, date, date, fdate, g_era, caches, None)
|
|
87
80
|
g_supplier_contract = g_era.g_contract
|
|
88
|
-
vb_function = contract_func(caches, g_supplier_contract, "virtual_bill")
|
|
89
|
-
if vb_function is None:
|
|
90
|
-
raise BadRequest(
|
|
91
|
-
f"The contract {g_supplier_contract.name} doesn't have the "
|
|
92
|
-
f"virtual_bill() function."
|
|
93
|
-
)
|
|
94
|
-
vb_function(ds)
|
|
95
|
-
bill = ds.bill
|
|
96
81
|
|
|
97
82
|
writer.writerow(
|
|
98
83
|
csv_make_val(value)
|
|
@@ -112,8 +97,8 @@ def content(date, g_supply_id, user):
|
|
|
112
97
|
g_supply_start_date,
|
|
113
98
|
g_supply_finish_date,
|
|
114
99
|
g_era.g_reading_frequency.code,
|
|
115
|
-
|
|
116
|
-
|
|
100
|
+
g_era.aq,
|
|
101
|
+
g_era.soq,
|
|
117
102
|
]
|
|
118
103
|
)
|
|
119
104
|
except BaseException:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1742896763.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)
|
|
@@ -102,7 +102,7 @@ chellow/reports/report_csv_site_hh_data.py,sha256=ik0OkGVo1bfTXLdcT3gPUHnxSkSdor
|
|
|
102
102
|
chellow/reports/report_csv_site_snags.py,sha256=AuAy6vjL0g7vwPPAZhBqxOyITL9_jnyFj012MnUcxxk,2627
|
|
103
103
|
chellow/reports/report_ecoes_comparison.py,sha256=wEwJrFMOz74CidONkTmgWD1Ghhgo9DT0V7Vddkspkqg,21403
|
|
104
104
|
chellow/reports/report_g_monthly_duration.py,sha256=VQq5xTLvdu9Z_vqrgWNP2S4xm2uCSSZA9HVNiQv9Dus,18264
|
|
105
|
-
chellow/reports/report_g_supplies_snapshot.py,sha256=
|
|
105
|
+
chellow/reports/report_g_supplies_snapshot.py,sha256=9xB6RDrnbgxuomMcP1b1yEP4kOnEJ34WgKpyxLTprOQ,3998
|
|
106
106
|
chellow/reports/report_g_supply_virtual_bill.py,sha256=EaYrB8PHJIXrUuhiZ7dwUlbNBkuyJebQHrdc308_z1o,3653
|
|
107
107
|
chellow/reports/report_g_virtual_bills.py,sha256=20vHa5LGQwOAlJlaGJaGszZrrbT0PMOZJf6hSxU2hIQ,4528
|
|
108
108
|
chellow/reports/report_g_virtual_bills_hh.py,sha256=gaiLEmKTpq6JsfZ1p0SdCDuPvzvigXp6z88gHRCA63w,3416
|
|
@@ -378,6 +378,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
|
|
|
378
378
|
chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
|
|
379
379
|
chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
|
|
380
380
|
chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
|
|
381
|
-
chellow-
|
|
382
|
-
chellow-
|
|
383
|
-
chellow-
|
|
381
|
+
chellow-1742896763.0.0.dist-info/METADATA,sha256=4JSYUHtJTBvxXihV9h4fYzFMnp0XlwQahYaaf61_98E,12238
|
|
382
|
+
chellow-1742896763.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
383
|
+
chellow-1742896763.0.0.dist-info/RECORD,,
|
|
File without changes
|