Minor change to load the page without having to clock load button plus a
small bug fix.
This commit is contained in:
parent
764fdd356e
commit
52d0ef1971
@ -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'),
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user