altre fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
async def main_loader(cfg: object, id: int, pool) -> None:
|
||||
await pipe_sep_main_loader(cfg, id, pool, "pipe_separator")
|
||||
@@ -1,4 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
await pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
async def main_loader(cfg: object, id: int, pool) -> None:
|
||||
await pipe_sep_main_loader(cfg, id, pool, "pipe_separator")
|
||||
@@ -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 musa_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)
|
||||
async def main_loader(cfg: object, id: int, pool) -> None:
|
||||
await musa_main_loader(cfg, id, pool, "musa")
|
||||
@@ -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 gd_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)
|
||||
async def main_loader(cfg: object, id: int, pool) -> None:
|
||||
await gd_main_loader(cfg, id, pool, "gd")
|
||||
@@ -1,4 +1,4 @@
|
||||
from .tlp_tlp import main_loader as tlp_tlp_main_loader
|
||||
from utils.csv.loaders import main_loader as tlp_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int, pool) -> None:
|
||||
await tlp_tlp_main_loader(cfg, id)
|
||||
await tlp_main_loader(cfg, id, pool, "tlp")
|
||||
@@ -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 tlp_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)
|
||||
async def main_loader(cfg: object, id: int, pool) -> None:
|
||||
await tlp_main_loader(cfg, id, pool, "tlp")
|
||||
Reference in New Issue
Block a user