fix x channels
This commit is contained in:
@@ -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")
|
||||
@@ -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")
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user