chellow 1712589951.0.0__py3-none-any.whl → 1712838153.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/elexon.py
CHANGED
|
@@ -120,13 +120,6 @@ class Elexon(threading.Thread):
|
|
|
120
120
|
with Session() as sess:
|
|
121
121
|
try:
|
|
122
122
|
config = Contract.get_non_core_by_name(sess, "configuration")
|
|
123
|
-
props = config.make_properties()
|
|
124
|
-
scripting_key = props.get(ELEXON_PORTAL_SCRIPTING_KEY_KEY)
|
|
125
|
-
if scripting_key is None:
|
|
126
|
-
raise BadRequest(
|
|
127
|
-
f"The property {ELEXON_PORTAL_SCRIPTING_KEY_KEY} "
|
|
128
|
-
f"cannot be found in the configuration properties."
|
|
129
|
-
)
|
|
130
123
|
state = config.make_state()
|
|
131
124
|
try:
|
|
132
125
|
elexon_state = state[ELEXON_STATE_KEY]
|
|
@@ -135,7 +128,14 @@ class Elexon(threading.Thread):
|
|
|
135
128
|
|
|
136
129
|
elexon_state[LAST_RUN_KEY] = utc_datetime_now()
|
|
137
130
|
config.update_state(state)
|
|
131
|
+
props = config.make_properties()
|
|
132
|
+
scripting_key = props.get(ELEXON_PORTAL_SCRIPTING_KEY_KEY)
|
|
138
133
|
sess.commit()
|
|
134
|
+
if scripting_key is None:
|
|
135
|
+
raise BadRequest(
|
|
136
|
+
f"The property {ELEXON_PORTAL_SCRIPTING_KEY_KEY} "
|
|
137
|
+
f"cannot be found in the configuration properties."
|
|
138
|
+
)
|
|
139
139
|
run_import(sess, self.log, self.set_progress, scripting_key)
|
|
140
140
|
except BaseException as e:
|
|
141
141
|
msg = f"{e.description} " if isinstance(e, BadRequest) else ""
|
chellow/models.py
CHANGED
|
@@ -6817,9 +6817,9 @@ def db_init(sess, root_path):
|
|
|
6817
6817
|
GContract.insert_industry(sess, name, "", props, last_month_start, None, rs)
|
|
6818
6818
|
|
|
6819
6819
|
sess.execute(
|
|
6820
|
-
text(f
|
|
6820
|
+
text(f'alter database "{db_name}" set default_transaction_deferrable = on')
|
|
6821
6821
|
)
|
|
6822
|
-
sess.execute(text(f"alter database {db_name} SET DateStyle TO 'ISO, YMD'"))
|
|
6822
|
+
sess.execute(text(f"""alter database "{db_name}" SET DateStyle TO 'ISO, YMD'"""))
|
|
6823
6823
|
sess.commit()
|
|
6824
6824
|
sess.close()
|
|
6825
6825
|
engine.dispose()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1712838153.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)
|
|
@@ -12,7 +12,7 @@ Requires-Dist: flask==2.3.3
|
|
|
12
12
|
Requires-Dist: odio==0.0.22
|
|
13
13
|
Requires-Dist: openpyxl==3.1.2
|
|
14
14
|
Requires-Dist: pep3143daemon==0.0.6
|
|
15
|
-
Requires-Dist: pg8000==1.
|
|
15
|
+
Requires-Dist: pg8000==1.31.1
|
|
16
16
|
Requires-Dist: pip>=9.0.1
|
|
17
17
|
Requires-Dist: psutil==5.9.5
|
|
18
18
|
Requires-Dist: pympler==1.0.1
|
|
@@ -5,7 +5,7 @@ chellow/commands.py,sha256=ESBe9ZWj1c3vdZgqMZ9gFvYAB3hRag2R1PzOwuw9yFo,1302
|
|
|
5
5
|
chellow/dloads.py,sha256=5SmP-0QPK6xCkd_wjIWh_8FAzN5OxNHCzyEQ1Xb-Y-M,5256
|
|
6
6
|
chellow/edi_lib.py,sha256=het3R0DBGtXEo-Sy1zvXQuX9EWQ1X6Y33G4l1hYYuds,51859
|
|
7
7
|
chellow/general_import.py,sha256=4LduwzNipxOiHYHQLb0x96_m3RPuDnQMbJzOFDbOqTg,65039
|
|
8
|
-
chellow/models.py,sha256=
|
|
8
|
+
chellow/models.py,sha256=9SDx150OdxFnw4tfpvLn2fB0NsqlrE57VqdRPYz9OnE,237335
|
|
9
9
|
chellow/national_grid.py,sha256=uxcv0qisHPyzw9AVIYPzsRqwt2XPAcZL-SBR12qcrS0,4364
|
|
10
10
|
chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
|
|
11
11
|
chellow/rate_server.py,sha256=vNuKzlr0lkAzZ4zG7zboStoo92_6iLKAxbw1yZ-ucII,5626
|
|
@@ -22,7 +22,7 @@ chellow/e/cfd.py,sha256=V1DTT5XBQbt8hO1gae1u3315fZ4iuYk3XC7J2sUbhKQ,14352
|
|
|
22
22
|
chellow/e/computer.py,sha256=YL1JFUYfFW-i9DODfvSnp6gTL_MwIfwoWj1TWtOsxPg,67105
|
|
23
23
|
chellow/e/dno_rate_parser.py,sha256=5MYEbcYngh7n6Szn2h9zLTwQKXH-WHKy6c80PYwNLLQ,20983
|
|
24
24
|
chellow/e/duos.py,sha256=ISTcNqe9KNjVNM2Qs8IBoQxnmSXOt5W_G7tZxp4T78M,28870
|
|
25
|
-
chellow/e/elexon.py,sha256=
|
|
25
|
+
chellow/e/elexon.py,sha256=ALhXS9Es7PV0z9ukPbIramn3cf3iLyFi-PMWPSm5iOs,5487
|
|
26
26
|
chellow/e/energy_management.py,sha256=aXC2qlGt3FAODlNl_frWzVYAQrJLP8FFOiNX3m-QE_Y,12388
|
|
27
27
|
chellow/e/hh_importer.py,sha256=nhmlWDNBm8U4salBud8ivdaDGF1lkY82NqQCrGuPYRI,20483
|
|
28
28
|
chellow/e/hh_parser_bg_csv.py,sha256=W5SU2MSpa8BGA0VJw1JXF-IwbCNLFy8fe35yxLZ7gEw,2453
|
|
@@ -361,6 +361,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
|
|
|
361
361
|
chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
|
|
362
362
|
chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
|
|
363
363
|
chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
|
|
364
|
-
chellow-
|
|
365
|
-
chellow-
|
|
366
|
-
chellow-
|
|
364
|
+
chellow-1712838153.0.0.dist-info/METADATA,sha256=Xtd86NDSwOVRdtBadWm_V5D9VIJ2WCa2T17MD_rBvG0,12203
|
|
365
|
+
chellow-1712838153.0.0.dist-info/WHEEL,sha256=as-1oFTWSeWBgyzh0O_qF439xqBe6AbBgt4MfYe5zwY,87
|
|
366
|
+
chellow-1712838153.0.0.dist-info/RECORD,,
|
|
File without changes
|