evol4
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#!.venv/bin/python
|
||||
# Import necessary modules
|
||||
from utils.database.loader import load_data
|
||||
from utils.parsers.data_preparation import make_matrix
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def main_loader(cfg, id):
|
||||
# Define the main function for loading data
|
||||
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
|
||||
load_data(cfg, matrice_valori)
|
||||
Reference in New Issue
Block a user