restore composer.json, add mysqli extension
This commit is contained in:
@@ -132,7 +132,15 @@ def build_product_data(doc_id: str, data: dict) -> dict:
|
|||||||
_section_id=data.get("section_id") or "",
|
_section_id=data.get("section_id") or "",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def print_progress(current, total, created, updated, skipped, errors):
|
||||||
|
percent = int(current / total * 100) if total else 0
|
||||||
|
bar_filled = percent // 5
|
||||||
|
bar = "█" * bar_filled + "░" * (20 - bar_filled)
|
||||||
|
line = (
|
||||||
|
f"\r [{bar}] {percent:3d}% "
|
||||||
|
f"{current}/{total} | "
|
||||||
|
f"✓ {created} ↑ {updated} — {skipped} ✗ {errors}"
|
||||||
|
)
|
||||||
print(line, end="", flush=True)
|
print(line, end="", flush=True)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user