fix x channels

This commit is contained in:
2025-05-26 22:38:19 +02:00
parent 95c8ced201
commit 670972bd45
5 changed files with 28 additions and 50 deletions

View File

@@ -1,16 +1,4 @@
#!.venv/bin/python
# Import necessary modules
from utils.database.loader_action import load_data, update_status
from utils.database import DATA_LOADED
from utils.csv.data_preparation import make_matrix
import logging
from utils.csv.loaders import main_loader as channels_main_loader
logger = logging.getLogger(__name__)
# Define the main function for loading data
async def main_loader(cfg: object, id: int) -> None:
# Create a matrix of values from the data
matrice_valori = make_matrix(cfg, id)
# Load the data into the database
if load_data(cfg, matrice_valori):
update_status(cfg, id, DATA_LOADED)
await channels_main_loader(cfg, id, "channels")

View File

@@ -1,16 +1,4 @@
#!.venv/bin/python
# Import necessary modules
from utils.database.loader_action import load_data, update_status
from utils.database import DATA_LOADED
from utils.csv.data_preparation import make_matrix
import logging
from utils.csv.loaders import main_loader as channels_main_loader
logger = logging.getLogger(__name__)
# Define the main function for loading data
async def main_loader(cfg: object, id: int) -> None:
# Create a matrix of values from the data
matrice_valori = make_matrix(cfg, id)
# Load the data into the database
if load_data(cfg, matrice_valori):
update_status(cfg, id, DATA_LOADED)
await channels_main_loader(cfg, id, "channels")

View File

@@ -1,4 +1,4 @@
from .g801_mux import main_loader as g801_mux_main_loader
from utils.csv.loaders import main_loader as channels_main_loader
async def main_loader(cfg: object, id: int) -> None:
await g801_mux_main_loader(cfg, id)
await channels_main_loader(cfg, id, "channels")