This commit is contained in:
@@ -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