expanding dash
This commit is contained in:
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user