From b89484d8e0eebe4086807cf68102ab87873bfa74 Mon Sep 17 00:00:00 2001 From: sergio-utrillaa Date: Mon, 4 May 2026 12:57:50 +0200 Subject: [PATCH] Activate scheduler for daily metrics calculation --- app.py | 3 ++- config_files/config_variables.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index b0bcb9f..9e331ee 100644 --- a/app.py +++ b/app.py @@ -282,7 +282,8 @@ def create_app(): """ Create and configure the Flask application. """ - return app # ← la variable que ya tienes arriba + start_scheduler() + return app if __name__ == "__main__": diff --git a/config_files/config_variables.py b/config_files/config_variables.py index ebf18ae..081721b 100644 --- a/config_files/config_variables.py +++ b/config_files/config_variables.py @@ -1,8 +1,8 @@ # Scheduler configuration variables # The date must be in the format YYYY-MM-DD. It must contain something, an empty string will not work and will raise an error. -_Start_scheduler_date = "2025-06-10" -_End_scheduler_date = "2025-06-20" -_Hour_scheduler = "10" # Runs every day at midnight -_Minute_scheduler = "28" -_Second_scheduler = "30" +_Start_scheduler_date = "2026-01-01" +_End_scheduler_date = "2026-12-31" +_Hour_scheduler = "00" # Runs every day at midnight +_Minute_scheduler = "00" +_Second_scheduler = "00"