Mbonea commited on
Commit
6d15d9b
1 Parent(s): f781fe7

fixed assets bug

Browse files
Files changed (1) hide show
  1. App/Worker.py +1 -2
App/Worker.py CHANGED
@@ -26,8 +26,7 @@ def worker_process_init_handler(**kwargs):
26
  @celery.task
27
  def create_json_file(assets: List[Assets], asset_dir: str):
28
  for asset in assets:
29
- filename = f"{asset.type}Sequences.json"
30
- filename = filename.capitalize()
31
  # Convert dictionary to JSON string
32
  json_string = json.dumps(asset.sequence)
33
 
 
26
  @celery.task
27
  def create_json_file(assets: List[Assets], asset_dir: str):
28
  for asset in assets:
29
+ filename = f"{asset.type.capitalize()}Sequences.json"
 
30
  # Convert dictionary to JSON string
31
  json_string = json.dumps(asset.sequence)
32