This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
"""Generate solid-color PNG icons for PWA manifest using stdlib only (no Pillow)."""
|
||||
import zlib, struct, os
|
||||
import zlib
|
||||
import struct
|
||||
import os
|
||||
|
||||
def make_png(size, rgb=(0x25, 0x63, 0xEB)):
|
||||
"""Create a minimal valid RGB PNG of the given size filled with one color."""
|
||||
|
||||
@@ -16,7 +16,6 @@ Usage:
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
from datetime import date
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@@ -31,11 +31,11 @@ from pathlib import Path
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
sys.path.insert(0, str(REPO_ROOT))
|
||||
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from sqlalchemy import create_engine, text # noqa: E402
|
||||
from sqlalchemy.orm import sessionmaker # noqa: E402
|
||||
|
||||
import config
|
||||
from models import Base, Battery, BatteryPctLog, CapacityTest, ChargeLog, Device
|
||||
import config # noqa: E402
|
||||
from models import Base, Battery, BatteryPctLog, CapacityTest, ChargeLog, Device # noqa: E402
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -62,7 +62,7 @@ def collect_credentials() -> str:
|
||||
"""Return a MariaDB SQLAlchemy URL, prompting for any missing pieces."""
|
||||
url = os.environ.get("MARIADB_URL", "").strip()
|
||||
if url:
|
||||
print(f" Using MARIADB_URL from environment.")
|
||||
print(" Using MARIADB_URL from environment.")
|
||||
return url
|
||||
|
||||
print("Enter MariaDB connection details (press Enter to accept defaults):\n")
|
||||
|
||||
Reference in New Issue
Block a user