dragxd commited on
Commit
06c6bf6
·
verified ·
1 Parent(s): 350c204

Update OneApi/deployment/host.py

Browse files
Files changed (1) hide show
  1. OneApi/deployment/host.py +2 -1
OneApi/deployment/host.py CHANGED
@@ -55,10 +55,11 @@ class Host:
55
  return 'Failed to host repo'
56
  ls = await run(f"ls {repo_folder}")
57
 
 
58
  await database.add_log(
59
  user_id,
60
  project_id,
61
- f"Successfully clonned repo!, Files found in repo: {len(ls.split('\n')) if '\n' in ls else 0}"
62
  )
63
 
64
  if not await aiofiles.os.path.isfile(f"{repo_folder}/ElevenHost.yaml"):
 
55
  return 'Failed to host repo'
56
  ls = await run(f"ls {repo_folder}")
57
 
58
+ file_count = len(ls.split('\n')) if '\n' in ls else 0
59
  await database.add_log(
60
  user_id,
61
  project_id,
62
+ f"Successfully clonned repo!, Files found in repo: {file_count}"
63
  )
64
 
65
  if not await aiofiles.os.path.isfile(f"{repo_folder}/ElevenHost.yaml"):