chellow 1743596801.0.0__py3-none-any.whl → 1744121701.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/cfd.py CHANGED
@@ -48,7 +48,7 @@ def hh(data_source, use_bill_check=False):
48
48
 
49
49
  for h in data_source.hh_data:
50
50
  try:
51
- h["cfd-rate"] = cfd_cache[h["start-date"]]
51
+ h["cfd-rates"] = cfd_cache[h["start-date"]]
52
52
  except KeyError:
53
53
  h_start = h["start-date"]
54
54
  if use_bill_check:
@@ -104,7 +104,10 @@ def hh(data_source, use_bill_check=False):
104
104
  levy_rate_str = effective_ocl_rate
105
105
  levy_rate = float(levy_rate_str) / 1000
106
106
 
107
- h["cfd-rate"] = cfd_cache[h_start] = base_rate + levy_rate
107
+ h["cfd-rates"] = cfd_cache[h_start] = {
108
+ "interim": base_rate,
109
+ "operational": levy_rate,
110
+ }
108
111
 
109
112
 
110
113
  def lcc_import(sess, log, set_progress, s):
chellow/testing.py CHANGED
@@ -8,8 +8,8 @@ from sqlalchemy.sql.expression import select
8
8
  from chellow.models import (
9
9
  Contract,
10
10
  GContract,
11
+ RSession,
11
12
  Report,
12
- Session,
13
13
  )
14
14
  from chellow.utils import ct_datetime_now
15
15
 
@@ -62,7 +62,7 @@ class Tester(threading.Thread):
62
62
  while not self.stopped.isSet():
63
63
  if self.lock.acquire(False):
64
64
  self.global_alert = None
65
- with Session() as sess:
65
+ with RSession() as sess:
66
66
  try:
67
67
  _run(self.log, sess)
68
68
  except BaseException:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chellow
3
- Version: 1743596801.0.0
3
+ Version: 1744121701.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/national_grid.py,sha256=czwIZqzJndSGhEMQ5YzI6hRBhvjkM6VRVYXybf4_KXg,4377
10
10
  chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
11
11
  chellow/rate_server.py,sha256=fg-Pf_9Hk3bXmC9riPQNGQxBvLvBa_WtNYdwDCjnCSg,5678
12
12
  chellow/rrun.py,sha256=1Kt2q_K9UoDG_nsZz-Q6XJiMNKroWqlqFdxn2M6Q8CA,2088
13
- chellow/testing.py,sha256=Od4HHH6pZrhJ_De118_F55RJEKmAvhUH2S24QE9qFQk,3635
13
+ chellow/testing.py,sha256=Dj2c1NX8lVlygueOrh2eyYawLW6qKEHxNhXVVUaNRO0,3637
14
14
  chellow/utils.py,sha256=Ej7dsbQ6Ee8X2aZ7B2Vs-hUFCsMABioAdOV1DJjwY-0,19293
15
15
  chellow/views.py,sha256=2WCU-_8lDuSDROvNlCGsAQVLSMh5qrD2wmeSr2G-umA,83872
16
16
  chellow/e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,7 +19,7 @@ chellow/e/bill_importer.py,sha256=7UcnqNlKbJc2GhW9gy8sDp9GuqambJVpZLvbafOZztA,74
19
19
  chellow/e/bmarketidx.py,sha256=9PDY-JKQwcQhGpgJEj8EktQXrUITBvQ35YryzTxwle8,7936
20
20
  chellow/e/bsuos.py,sha256=hdP9vnOJSuZl46OAkJeUg1XJYvYIBj4J6Sqce1Hy9Vs,15542
21
21
  chellow/e/ccl.py,sha256=30dh_SvlgzsTQPPAJNZWILaMvbeDsv9-P-S1JxS5_SQ,3184
22
- chellow/e/cfd.py,sha256=Gm435c42LFwZx1n-1UY1Tdx6mL1is7E0vRLWQe8RPOo,14184
22
+ chellow/e/cfd.py,sha256=CWLdYeNjgqT6Ro8YRf4vhwXIAJ2aV4Wi6HLNClVSeaQ,14260
23
23
  chellow/e/computer.py,sha256=aGti5aXRTdC85M-WRiAoZkC_76sqfAiP-79ggWZF09Q,68020
24
24
  chellow/e/dno_rate_parser.py,sha256=A5TP6KjyfT5lVWh7dX4SiXRi6wnf2lGv-H_T4Sod8CI,21731
25
25
  chellow/e/duos.py,sha256=RHrn93I1ASO2uYkuF18qlhG4p-jpuJhd_g3o69wtP4U,31004
@@ -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-1743596801.0.0.dist-info/METADATA,sha256=dA5iSa2RlUjZr0s1E1rpNaVAu6cXlYqtSsVyKtjES-g,12238
382
- chellow-1743596801.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
- chellow-1743596801.0.0.dist-info/RECORD,,
381
+ chellow-1744121701.0.0.dist-info/METADATA,sha256=3qnfj66kvEvOu60QenxZ7VRSjLo3LKhz-soJMqn8zTo,12238
382
+ chellow-1744121701.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
383
+ chellow-1744121701.0.0.dist-info/RECORD,,