chellow 1724318422.0.0__py3-none-any.whl → 1724334398.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/dloads.py CHANGED
@@ -25,17 +25,23 @@ def startup(instance_path, run_deleter=True):
25
25
  global download_id
26
26
  global download_path
27
27
 
28
- if run_deleter:
29
- file_deleter = FileDeleter()
30
- file_deleter.start()
31
-
32
28
  download_path = instance_path / "downloads"
33
29
  download_path.mkdir(parents=True, exist_ok=True)
34
30
 
31
+ # Delete any files marked RUNNING that are hanging around
32
+ for fl in download_path.iterdir():
33
+ if fl.name[SERIAL_DIGITS:].startswith("_RUNNING_"):
34
+ new_name = fl.name.replace("_RUNNING_", "_INTERRUPTED_", 1)
35
+ fl.rename(fl.parent / new_name)
36
+
35
37
  dirs = sorted(download_path.iterdir(), reverse=True)
36
38
  if len(dirs) > 0:
37
39
  download_id = int(dirs[0].name[:SERIAL_DIGITS]) + 1
38
40
 
41
+ if run_deleter:
42
+ file_deleter = FileDeleter()
43
+ file_deleter.start()
44
+
39
45
 
40
46
  class DloadFile:
41
47
  def __init__(self, running_name, finished_name, mode, newline, is_zip):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chellow
3
- Version: 1724318422.0.0
3
+ Version: 1724334398.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)
@@ -2,7 +2,7 @@ chellow/__init__.py,sha256=A6gh-jVJBhuCFmfquLEa8uf-kQhsRSFficE1SlnHnAg,10200
2
2
  chellow/api.py,sha256=mk17TfweR76DPFC8lX2SArTjai6y6YshASxqO1w-_-s,11036
3
3
  chellow/bank_holidays.py,sha256=T_utYMwe_g1dz5X-aOTdIPryg49SvB7QsWM1yphlqG8,4423
4
4
  chellow/commands.py,sha256=ESBe9ZWj1c3vdZgqMZ9gFvYAB3hRag2R1PzOwuw9yFo,1302
5
- chellow/dloads.py,sha256=5SmP-0QPK6xCkd_wjIWh_8FAzN5OxNHCzyEQ1Xb-Y-M,5256
5
+ chellow/dloads.py,sha256=dixp-O0MF2_mlwrnKx3D9DH09Qu05BjTo0rZfigTjR4,5534
6
6
  chellow/edi_lib.py,sha256=alu20x9ZX06iPfnNI9dEJzuP6RIf4We3Y_M_bl7RrcY,51789
7
7
  chellow/general_import.py,sha256=l3EHq9zG9Vfl5Ee6XTVrC1nusXo4YGGB4VBmZ_JaJR8,65798
8
8
  chellow/models.py,sha256=rQLMIpGqFQk0fm7SQsAJbb51j3OM55e-4-MVfh0mBAc,243511
@@ -365,6 +365,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
365
365
  chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
366
366
  chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
367
367
  chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
368
- chellow-1724318422.0.0.dist-info/METADATA,sha256=VR1bg4yGVprAuGnPp_bo8wwpmpcG_tOFHBcamuJ88jo,12241
369
- chellow-1724318422.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
370
- chellow-1724318422.0.0.dist-info/RECORD,,
368
+ chellow-1724334398.0.0.dist-info/METADATA,sha256=pqYIzP5QRUm6h-OprcFHq3lYO4fl_hYTTKksG19zR1k,12241
369
+ chellow-1724334398.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
370
+ chellow-1724334398.0.0.dist-info/RECORD,,