diff --git a/indicators.py b/indicators.py index 110da0f..06c5fcb 100644 --- a/indicators.py +++ b/indicators.py @@ -339,12 +339,12 @@ def clear_input(d): Input("del_sig", "data"), ) def reload_syms(n, s, d): - if n or s or d: - watchlist = get_watchlist(auth.username) - symbols = (watchlist.iloc[:, 0] + " - " + watchlist.iloc[:, 1]).tolist() - return symbols, 0, 2*len(symbols) +# if n or s or d: + watchlist = get_watchlist(auth.username) + symbols = (watchlist.iloc[:, 0] + " - " + watchlist.iloc[:, 1]).tolist() + return symbols, 0, 2*len(symbols) - return no_update +# return no_update # interval callback @callback(Output('symbols_dropdown_list', 'value'), diff --git a/subroutines/dbutil.py b/subroutines/dbutil.py index 68997ce..ba79519 100644 --- a/subroutines/dbutil.py +++ b/subroutines/dbutil.py @@ -4,7 +4,7 @@ import sys import os import pandas as pd -def connect_db(host, database, user, password): +def connect_db(): """Connect to database Returns: