Small things because fuck sd cards
This commit is contained in:
@@ -3,6 +3,7 @@ import json
|
||||
import time
|
||||
import asyncio
|
||||
import requests
|
||||
import os
|
||||
|
||||
from shared.microwave_state import MicrowaveState, MicrowaveStateFields
|
||||
from shared import get_lora, get_mqtt_client, deviceTypes, config, payloads, db
|
||||
@@ -26,7 +27,8 @@ def is_technician_mode_active() -> bool:
|
||||
return TECHNICIAN_MODE
|
||||
|
||||
# --- DB SETUP ---
|
||||
DB_PATH = "orchestrateur/db.sqlite"
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DB_PATH = os.path.join(BASE_DIR, "db.sqlite")
|
||||
|
||||
def init_db():
|
||||
"""Ensures the connected_components table exists on startup."""
|
||||
|
||||
Reference in New Issue
Block a user