2 calculatoare
This commit is contained in:
@@ -6,7 +6,7 @@ setlocal
|
||||
cd /d "%~dp0"
|
||||
|
||||
set "PC2=lenovo-aio-birou"
|
||||
set "DEST=\\%PC2%\E$\proiecte\nlp-master\nlp-practitioner\audio"
|
||||
set "DEST=\\%PC2%\audio"
|
||||
|
||||
echo ==============================================
|
||||
echo Copiez audio Modul 6/7/8 -^> %PC2%
|
||||
|
||||
@@ -13,6 +13,7 @@ import argparse
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -200,7 +201,11 @@ def main():
|
||||
skipped = 0
|
||||
failed = 0
|
||||
|
||||
for mod_idx, mod in enumerate(manifest["modules"], 1):
|
||||
for pos, mod in enumerate(manifest["modules"], 1):
|
||||
# Derive module number from name (e.g. "Modul 6" -> 6) so partial
|
||||
# manifests (e.g. PC2 scraped only --modules 6) still match the filter.
|
||||
m = re.search(r"(\d+)", mod["name"])
|
||||
mod_idx = int(m.group(1)) if m else pos
|
||||
if module_filter and mod_idx not in module_filter:
|
||||
log.info(f"\nSkipping module {mod_idx}: {mod['name']}")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user