chellow 1713300425.0.0__py3-none-any.whl → 1713470986.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/general_import.py CHANGED
@@ -557,6 +557,10 @@ def general_import_g_supply(sess, action, vals, args):
557
557
  g_reading_frequency = GReadingFrequency.get_by_code(
558
558
  sess, g_reading_frequency_code
559
559
  )
560
+ aq_str = add_arg(args, "AQ", vals, 12)
561
+ aq = Decimal(aq_str)
562
+ soq_str = add_arg(args, "SOQ", vals, 13)
563
+ soq = Decimal(soq_str)
560
564
 
561
565
  site.insert_g_supply(
562
566
  sess,
@@ -571,6 +575,8 @@ def general_import_g_supply(sess, action, vals, args):
571
575
  g_contract,
572
576
  account,
573
577
  g_reading_frequency,
578
+ aq,
579
+ soq,
574
580
  )
575
581
  sess.flush()
576
582
  elif action == "update":
@@ -1568,7 +1574,11 @@ def general_import_site(sess, action, vals, args):
1568
1574
  site.delete()
1569
1575
  elif action == "update":
1570
1576
  new_code = add_arg(args, "new_site_code", vals, 1)
1577
+ if new_code == NO_CHANGE:
1578
+ new_code = site.code
1571
1579
  name = add_arg(args, "new_site_name", vals, 2)
1580
+ if name == NO_CHANGE:
1581
+ name = site.name
1572
1582
  site.update(new_code, name)
1573
1583
 
1574
1584
 
@@ -64,7 +64,6 @@ def content(user_id, show_ignored, report_run_id):
64
64
  for key in (
65
65
  "user_name",
66
66
  "password",
67
- "prefix",
68
67
  "exclude_mpan_cores",
69
68
  "ignore_mpan_cores_msn",
70
69
  ):
@@ -78,7 +77,7 @@ def content(user_id, show_ignored, report_run_id):
78
77
 
79
78
  exclude_mpan_cores = ecoes_props["exclude_mpan_cores"]
80
79
  ignore_mpan_cores_msn = ecoes_props["ignore_mpan_cores_msn"]
81
- url_prefix = ecoes_props["prefix"]
80
+ url_prefix = "https://www.ecoes.co.uk/"
82
81
 
83
82
  proxies = props.get("proxies", {})
84
83
  s = requests.Session()
@@ -142,7 +142,7 @@
142
142
  <td>{{g_read.pres_date|hh_format}}</td>
143
143
  <td>{{g_read.pres_value}}</td>
144
144
  <td>{{g_read.pres_type_code}}</td>
145
- <td>{{g_read.units}}</td>
145
+ <td>{{g_read.unit}}</td>
146
146
  <td>{{g_read.correction_factor}}</td>
147
147
  <td>{{g_read.calorific_value}}</td>
148
148
  {% endfor %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1713300425.0.0
3
+ Version: 1713470986.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)
@@ -4,7 +4,7 @@ chellow/bank_holidays.py,sha256=T_utYMwe_g1dz5X-aOTdIPryg49SvB7QsWM1yphlqG8,4423
4
4
  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
- chellow/general_import.py,sha256=Su_JW28Wb2fG3x8fAbNmvB_YAEPieO_arhlhp31DHD8,65369
7
+ chellow/general_import.py,sha256=xx4R0kQ6WKIty1UdXoF0igGJQZGm9lDNGynMi7LP0k8,65700
8
8
  chellow/models.py,sha256=POIL0dfwZFuqht7xHZaE6KJ7fk4kxMZC2aXzgg5kEFY,236921
9
9
  chellow/national_grid.py,sha256=uxcv0qisHPyzw9AVIYPzsRqwt2XPAcZL-SBR12qcrS0,4364
10
10
  chellow/proxy.py,sha256=cVXIktPlX3tQ1BYcwxq0nJXKE6r3DtFTtfFHPq55HaM,1351
@@ -92,7 +92,7 @@ chellow/reports/report_bills.py,sha256=AHW6tiZAOE0gXDfencPvemE4zqK6eTqfN8_bWQ4RT
92
92
  chellow/reports/report_csv_llfcs.py,sha256=OHSbP64lQ6dlAMcQYgvdANlA4lQyF0iBlwk7V9c9nuo,1944
93
93
  chellow/reports/report_csv_site_hh_data.py,sha256=T-clGDmYdn0ej7zZfL3kDp4Vyd82WzptxEzxx9KqAZg,4270
94
94
  chellow/reports/report_csv_site_snags.py,sha256=gG2sYQrLoIBwCoMUC8rhmAL7Kffh_rvNb9UOX7cYDko,2668
95
- chellow/reports/report_ecoes_comparison.py,sha256=bTkbcvNB__UcNQtHncC41_Ql222vvPTJTnyVJbgjylM,21313
95
+ chellow/reports/report_ecoes_comparison.py,sha256=hx4kb_y-5HKiSihFiAw2ZAQQM0mC_LOX6aXRSzvGnIs,21292
96
96
  chellow/reports/report_g_monthly_duration.py,sha256=vI5FKAU8_oThjR5oflPZont7Z7sVAunr0qlMfJsaPJI,12004
97
97
  chellow/reports/report_g_supplies_snapshot.py,sha256=0M0x_0o0985Hu45gUJJJwzfx0DDOAuXBJ1UVUDbQ36g,4718
98
98
  chellow/reports/report_g_supply_virtual_bill.py,sha256=x_KtQ02dwgmXvAEUXJ1poK0BRwqxa-GcbJ5pddEina0,3694
@@ -326,7 +326,7 @@ chellow/templates/g/batches.html,sha256=mnzLroYfhwvL5gFK1PNtI-vS7GcDtcggNd0E15Sh
326
326
  chellow/templates/g/bill.html,sha256=S8moZ06CDl4_nQQgqyy4mdkyhfvgoQJGZS8ppsluT_E,3455
327
327
  chellow/templates/g/bill_add.html,sha256=sDSpUgEbdalDsea1Ma5lgVRgtbFf0bZ042jUdOFeDDk,1674
328
328
  chellow/templates/g/bill_edit.html,sha256=ynfUR_lZXLgTK3T0x9GjzAHahuR823ykMpjCWrY8ot8,2754
329
- chellow/templates/g/bill_import.html,sha256=jvTqahdh-3Jh8uQTtBlhL2E8p3PoUutz_cdcMzGlP74,4292
329
+ chellow/templates/g/bill_import.html,sha256=z8qJMUrGShD-7UEg7DTL5L1IacAnz7N3qoqQro30e9A,4291
330
330
  chellow/templates/g/bill_imports.html,sha256=AHC0l0Wkr1RZ9fdGWTqihOEcn8lTZ63Uh9BHqPxfRCU,3157
331
331
  chellow/templates/g/dn.html,sha256=ttEdvFANFUCBV8e9tVrZy35-tzsC9dU-biZhAPxE2Bw,481
332
332
  chellow/templates/g/dns.html,sha256=RuxXvQ9eHs6B7nVGHtTbW8pdmSAaMbQw2f_BwiLZptM,403
@@ -363,6 +363,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
363
363
  chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
364
364
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
365
365
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
366
- chellow-1713300425.0.0.dist-info/METADATA,sha256=vvz6LvRSO03nqzvbvDkbXejDg0ZiGZuWBgWJUHJiRk8,12205
367
- chellow-1713300425.0.0.dist-info/WHEEL,sha256=K0BPUNF1N3kQ9olb8aVEtkObePEjdr2JOLT1N83EVws,87
368
- chellow-1713300425.0.0.dist-info/RECORD,,
366
+ chellow-1713470986.0.0.dist-info/METADATA,sha256=ByNk6hztVgBFxYsMfnRRmEOC1NT0bE1JVT27eitq3ZI,12205
367
+ chellow-1713470986.0.0.dist-info/WHEEL,sha256=osohxoshIHTFJFVPhsi1UkZuLRGMHRXZzwEBW2ezjrc,87
368
+ chellow-1713470986.0.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.24.0
2
+ Generator: hatchling 1.24.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any