Minor change to load the page without having to clock load button plus a

small bug fix.
This commit is contained in:
George 2024-10-07 10:19:51 -07:00
parent 764fdd356e
commit 52d0ef1971
2 changed files with 6 additions and 6 deletions

View File

@ -339,12 +339,12 @@ def clear_input(d):
Input("del_sig", "data"), Input("del_sig", "data"),
) )
def reload_syms(n, s, d): def reload_syms(n, s, d):
if n or s or d: # if n or s or d:
watchlist = get_watchlist(auth.username) watchlist = get_watchlist(auth.username)
symbols = (watchlist.iloc[:, 0] + " - " + watchlist.iloc[:, 1]).tolist() symbols = (watchlist.iloc[:, 0] + " - " + watchlist.iloc[:, 1]).tolist()
return symbols, 0, 2*len(symbols) return symbols, 0, 2*len(symbols)
return no_update # return no_update
# interval callback # interval callback
@callback(Output('symbols_dropdown_list', 'value'), @callback(Output('symbols_dropdown_list', 'value'),

View File

@ -4,7 +4,7 @@ import sys
import os import os
import pandas as pd import pandas as pd
def connect_db(host, database, user, password): def connect_db():
"""Connect to database """Connect to database
Returns: Returns: