mirror of
https://github.com/infinition/Bjorn.git
synced 2026-03-19 10:10:24 +00:00
feat: Add login page with dynamic RGB effects and password toggle functionality
feat: Implement package management utilities with JSON endpoints for listing and uninstalling packages feat: Create plugin management utilities with endpoints for listing, configuring, and installing plugins feat: Develop schedule and trigger management utilities with CRUD operations for schedules and triggers
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# db_utils/hosts.py
|
||||
# Host and network device management operations
|
||||
"""hosts.py - Host and network device management operations."""
|
||||
|
||||
import time
|
||||
import sqlite3
|
||||
from typing import Any, Dict, Iterable, List, Optional
|
||||
from db_utils.base import _validate_identifier
|
||||
import logging
|
||||
|
||||
from logger import Logger
|
||||
@@ -428,6 +428,7 @@ class HostOps:
|
||||
if tname == 'hosts':
|
||||
continue
|
||||
try:
|
||||
_validate_identifier(tname, "table name")
|
||||
cur.execute(f"PRAGMA table_info({tname})")
|
||||
cols = [r[1].lower() for r in cur.fetchall()]
|
||||
if 'mac_address' in cols:
|
||||
|
||||
Reference in New Issue
Block a user