chellow 1728658886.0.0__py3-none-any.whl → 1728924490.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/scenario.py CHANGED
@@ -83,7 +83,8 @@ def make_create_future_func_monthly(contract_name, fnames):
83
83
  def make_site_deltas(
84
84
  sess, report_context, site, scenario_hh, forecast_from, supply_ids
85
85
  ):
86
- site_scenario_hh = scenario_hh.get(site.code, {})
86
+ site_scenario_hh_str = scenario_hh.get(site.code, {})
87
+ site_scenario_hh = {}
87
88
 
88
89
  site_deltas = {"hhs": {}}
89
90
  delts = site_deltas["supply_deltas"] = {}
@@ -97,7 +98,7 @@ def make_site_deltas(
97
98
 
98
99
  found_hh = False
99
100
  for typ in ("used", "generated", "parasitic", "gen_grid"):
100
- hh_str = site_scenario_hh.get(typ, "")
101
+ hh_str = site_scenario_hh_str.get(typ, "")
101
102
  hh_data = site_scenario_hh[typ] = {}
102
103
  for row in csv.reader(StringIO(hh_str)):
103
104
  cells = [cell.strip() for cell in row]
@@ -31,62 +31,33 @@
31
31
  {{ user.email_address }}
32
32
  {%- endif -%}">
33
33
 
34
- <label>Role</label>
35
- <input type="radio" name="user_role_code" value="editor"
36
- {%- if request.values.user_role_editor -%}
37
- {%- if request.values.user_role_editor == 'editor' %}
38
- checked
39
- {%- endif -%}
40
- {%- else -%}
41
- {%- if user.user_role.code == 'editor' %}
42
- checked
43
- {%- endif -%}
44
- {%- endif -%}
45
- >
46
- <label>Editor</label>
47
- <input type="radio" name="user_role_code" value="viewer"
48
- {% if request.values.user_role_code %}
49
- {% if request.values.user_role_code == 'viewer' %}
50
- checked
51
- {% endif %}
52
- {% else %}
53
- {% if user.user_role.code == 'viewer' %}
54
- checked
55
- {% endif %}
56
- {% endif %}
57
- >
58
- <label>Viewer</label>
59
- <input
60
- type="radio" name="user_role_code"
61
- value="party-viewer"
62
- {%- if request.values.user_role_code -%}
63
- {%- if request.values.user_role_code == 'party-viewer' -%}
64
- checked
65
- {%- endif -%}
66
- {%- else -%}
67
- {%- if user.user_role.code == 'party-viewer' -%}
68
- checked
69
- {% endif %}
70
- {% endif %}>
71
- <label>Party Viewer</label>
72
- <select name="party_id">
73
- {% for party in parties %}
74
- <option value="{{ party.id }}"
75
- {%- if request.values.party_id -%}
76
- {%- if request.values.party_id == party.id %}
77
- selected
34
+ <fieldset>
35
+ <legend>Role</legend>
36
+ <label>Editor</label>
37
+ <input type="radio" name="user_role_code" value="editor"
38
+ {%- if request.values.user_role_editor -%}
39
+ {%- if request.values.user_role_editor == 'editor' %}
40
+ checked
78
41
  {%- endif -%}
79
42
  {%- else -%}
80
- {%- if user.party.id == party.id %}
81
- selected
43
+ {%- if user.user_role.code == 'editor' %}
44
+ checked
82
45
  {%- endif -%}
83
46
  {%- endif -%}
84
- >
85
- {{ party.name }} {{ party.participant.code }}
86
- {{ party.market_role.description }}
87
- </option>
88
- {% endfor %}
89
- </select>
47
+ >
48
+ <label>Viewer</label>
49
+ <input type="radio" name="user_role_code" value="viewer"
50
+ {% if request.values.user_role_code %}
51
+ {% if request.values.user_role_code == 'viewer' %}
52
+ checked
53
+ {% endif %}
54
+ {% else %}
55
+ {% if user.user_role.code == 'viewer' %}
56
+ checked
57
+ {% endif %}
58
+ {% endif %}
59
+ >
60
+ </fieldset>
90
61
  <input type="submit" value="Update">
91
62
  </fieldset>
92
63
  </form>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1728658886.0.0
3
+ Version: 1728924490.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)
@@ -35,7 +35,7 @@ chellow/e/lcc.py,sha256=OkpynN8_iAdHRlu-yyU6BhRUqYYOZsUnl0HbHULYo_4,4670
35
35
  chellow/e/mdd_importer.py,sha256=NugJr2JhuzkPTsEMl_5UdQuw5K2p8lVJ-hyz4MK6Hfg,35762
36
36
  chellow/e/rcrc.py,sha256=92CA1uIotIHd1epQ_jEPdJKzXqDFV-AoJOJeRO6MEyA,4274
37
37
  chellow/e/ro.py,sha256=dZKZv_9wXSWuwcb3jiKavoD_9ot-PZseNVeEEe0siLo,596
38
- chellow/e/scenario.py,sha256=fBDZVOdrI1I3XQG-RdpB0-lDF9VYENBu_9bBXJxmvWk,23362
38
+ chellow/e/scenario.py,sha256=86DQIJ6ZK2XYIisHw6DafGcfwo1iPWF1t9rByy2yxbg,23396
39
39
  chellow/e/system_price.py,sha256=6w5J7bzwFAZubE2zdOFRiS8IIrVP8hkoIOaG2yCt-Ic,6232
40
40
  chellow/e/tlms.py,sha256=M33D6YpMixu2KkwSCzDRM3kThLgShg8exp63Obo75l8,8905
41
41
  chellow/e/tnuos.py,sha256=XseYztPUsQXNKuBmystO2kzzwAG9ehCZgpGBTdgSk-A,4313
@@ -154,7 +154,7 @@ chellow/templates/sites.html,sha256=4ouJ5xYqYHjXCv3cDucTjgbOd_whReFPPHopLBdW6Go,
154
154
  chellow/templates/supplies.html,sha256=Ie_4K4-KwXqrCBwaUcjWxmV27rYjeESI_DCS9gLUipk,3488
155
155
  chellow/templates/system.html,sha256=PP8MN8mieil3AwLS1WlQBcgbl0J61bksN-Cy4toYNqo,1871
156
156
  chellow/templates/tester.html,sha256=4DYrtcnFY0y6o3K6_tSmFpPlCRngZj1zo8nJ1NI4pk8,623
157
- chellow/templates/user.html,sha256=7nl_awpvotaaEO1UBA6DL4yjSUNTxgQjFx9dhnwcoFE,3255
157
+ chellow/templates/user.html,sha256=tUeE5v-MOayJD_vP1P4g1ruoVMCTcbk-u28fOVTPj84,2412
158
158
  chellow/templates/user_roles.html,sha256=Pfjr4uApEmJl8t9s0qJTxigQcAVYw7gpV_ECE8c0Cto,399
159
159
  chellow/templates/users.html,sha256=dBB0yOvsoYbY_I9le1XGqZ0SlesUbWMqfRGlZOtOgNs,2244
160
160
  chellow/templates/e/asset_comparison.html,sha256=QyN3WMw8YoFaSWUvD2NOnRLdLdB3Kv6m3t8Id8Mb6_A,678
@@ -368,6 +368,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
368
368
  chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
369
369
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
370
370
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
371
- chellow-1728658886.0.0.dist-info/METADATA,sha256=SyYUSBlbmfky6XPMpGtmeLB4YiiZkgeBGbnGLoeQuZ8,12204
372
- chellow-1728658886.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
373
- chellow-1728658886.0.0.dist-info/RECORD,,
371
+ chellow-1728924490.0.0.dist-info/METADATA,sha256=cTOCYE3No2O3KQyknsfL2U_hBqJ-zdUbXwI8Q9koTas,12204
372
+ chellow-1728924490.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
373
+ chellow-1728924490.0.0.dist-info/RECORD,,