expanding dash

This commit is contained in:
Jake
2025-04-05 11:04:40 +01:00
parent 5af82e5753
commit b573b3b9bc
6 changed files with 206 additions and 77 deletions
+2 -3
View File
@@ -5,10 +5,10 @@ import yaml
import sys
import atexit
import logging.config
import logging.handlers
import config.exit_codes as ec
from pipeline.pipeline_main import pipeline_main
from visuals.dash_app import app
def set_up_logging():
try:
@@ -55,12 +55,11 @@ if __name__ == '__main__':
config['API_TOKEN'] = API_TOKEN
config['BUDGET_ID'] = BUDGET_ID
try:
pipeline_main(config)
# pipeline_main(config)
# Check if the data was successfully created
data_exists = os.path.exists('data/processed') and os.listdir('data/processed')
if data_exists:
from dash_app import app
app.run() # debug=True
else:
logging.error('Data pipeline did not produce any data. Dash app will not run.')