mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
fix error for sqlite
This commit is contained in:
@@ -239,7 +239,6 @@ async def load_database_from_mqtt(
|
|||||||
# -------------------------
|
# -------------------------
|
||||||
async def main():
|
async def main():
|
||||||
check_optional_deps()
|
check_optional_deps()
|
||||||
await mqtt_store.load_gateway_cache()
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Initialize database
|
# Initialize database
|
||||||
@@ -268,6 +267,9 @@ async def main():
|
|||||||
await mqtt_database.create_tables()
|
await mqtt_database.create_tables()
|
||||||
logger.info("Database tables created")
|
logger.info("Database tables created")
|
||||||
|
|
||||||
|
# Load MQTT gateway cache after DB init/migrations
|
||||||
|
await mqtt_store.load_gateway_cache()
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
# Clear migration in progress flag
|
# Clear migration in progress flag
|
||||||
logger.info("Clearing migration status...")
|
logger.info("Clearing migration status...")
|
||||||
|
|||||||
Reference in New Issue
Block a user