From 52d0ef1971639f31d2761a518d7fabe34e974664 Mon Sep 17 00:00:00 2001 From: Charlie Date: Mon, 7 Oct 2024 10:19:51 -0700 Subject: [PATCH] Minor change to load the page without having to clock load button plus a small bug fix. --- indicators.py | 10 +++++----- subroutines/dbutil.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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: