chellow 1692799408.0.0__py3-none-any.whl → 1692867503.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/views.py CHANGED
@@ -621,8 +621,9 @@ def edi_viewer_get():
621
621
  @home.route("/edi_viewer", methods=["POST"])
622
622
  def edi_viewer_post():
623
623
  segments = []
624
+ file_name = None
624
625
  try:
625
- if "edi_file" in request.values:
626
+ if "edi_file" in request.files:
626
627
  file_item = req_file("edi_file")
627
628
  edi_str = str(
628
629
  file_item.stream.read(), encoding="utf-8-sig", errors="ignore"
@@ -630,7 +631,6 @@ def edi_viewer_post():
630
631
  file_name = file_item.filename
631
632
  else:
632
633
  edi_str = req_str("edi_fragment")
633
- file_name = None
634
634
 
635
635
  f = StringIO(edi_str)
636
636
  f.seek(0)
@@ -723,8 +723,9 @@ def edi_viewer_post():
723
723
  )
724
724
  except BadRequest as e:
725
725
  flash(e.description)
726
- return render_template(
727
- "edi_viewer.html", segments=segments, file_name=file_name
726
+ return make_response(
727
+ render_template("edi_viewer.html", segments=segments, file_name=file_name),
728
+ 400,
728
729
  )
729
730
 
730
731
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chellow
3
- Version: 1692799408.0.0
3
+ Version: 1692867503.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)
@@ -11,7 +11,7 @@ chellow/proxy.py,sha256=Mzssi9nTf6s_G4RSn8k5oAHqzVYIxMsfbudj1amYucI,1387
11
11
  chellow/rate_server.py,sha256=xVk15pdSovcD8K8BWcOmjwo_L3a8LYry7L2Gvw56OEQ,5696
12
12
  chellow/testing.py,sha256=1TvNEPjX_VRPDifJWRFJw_8gg0RCsEpYVHkspQ1diJw,3913
13
13
  chellow/utils.py,sha256=IHC4Pcd_9CRbmJXAOlDvTyAcUoaWeLSH37zgjqVYYl4,18981
14
- chellow/views.py,sha256=UTQfC_dcs-J-uZ7FVszmO7MYLE8NRCisfcfEzEO1iGE,83636
14
+ chellow/views.py,sha256=fNHCxCdws07jxaveclIspJIOb8tiXf4Xqo0PkZDs2Ak,83660
15
15
  chellow/e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  chellow/e/aahedc.py,sha256=DUrYAlrn4jzf6y6C2wivxlFosdVIibG69BWy_KMekGM,706
17
17
  chellow/e/bill_importer.py,sha256=BHrQkcvlOh27k0KexHA8nWJGcHGGpewbkkpncmxbAc4,7183
@@ -352,6 +352,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
352
352
  chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
353
353
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
354
354
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
355
- chellow-1692799408.0.0.dist-info/METADATA,sha256=3QGV8KK_Az-9F-Mde07iOtgC6RNnFNhqUU-Am3_SPUY,12160
356
- chellow-1692799408.0.0.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
357
- chellow-1692799408.0.0.dist-info/RECORD,,
355
+ chellow-1692867503.0.0.dist-info/METADATA,sha256=lIdX4pYwSAUf3e8vpQ85B9jxXn9-Bm_bfb2VO4zSZ9s,12160
356
+ chellow-1692867503.0.0.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
357
+ chellow-1692867503.0.0.dist-info/RECORD,,