evol 5
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!.venv/bin/python
|
||||
# Import necessary modules
|
||||
from utils.database.loader import load_data
|
||||
from utils.database.loader_action import load_data, update_status, DATA_LOADED
|
||||
from utils.parsers.data_preparation import make_matrix
|
||||
import logging
|
||||
|
||||
@@ -11,4 +11,5 @@ 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)
|
||||
if load_data(cfg, matrice_valori):
|
||||
update_status(cfg, id, DATA_LOADED)
|
||||
|
||||
Reference in New Issue
Block a user