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"),
)
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'),

View File

@ -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: