Update OneApi/deployment/host.py
Browse files
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: {
|
| 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"):
|