Skip to content

Commit

Permalink
Merge pull request #10 from mayushii21/development
Browse files Browse the repository at this point in the history
slight fix and version bump
  • Loading branch information
mayushii21 authored Oct 13, 2023
2 parents b38dcc6 + 3b69547 commit 2150206
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "innov8"
version = "0.0.8-beta"
version = "0.0.9-beta"
description = "an interactive market dashboard"
authors = [
{name = "mayushii21", email = "[email protected]"},
Expand Down
11 changes: 6 additions & 5 deletions src/innov8/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,21 @@ def update_state():
@data_access
def update_ticker_data(data, button, scope, symbol, sector_symbols, sector, up_to_date):
# Prevent the initial callback to avoid updating the store for nothing
# if button is None:
# raise PreventUpdate
if button is None:
# raise PreventUpdate
return up_to_date
# Add new data for the chosen scope and update the update-state
if button and scope == "Ticker":
if scope == "Ticker":
print(f"Updating {symbol}...", end=" ", flush=True)
data.add_new_ohlc(symbol)
up_to_date[symbol] = True
print("success ✓")
elif button and scope == "Sector":
elif scope == "Sector":
print("Updating sector...")
for symbol in tqdm(sector_symbols):
data.add_new_ohlc(symbol)
up_to_date[sector] = True
elif button:
else:
print("Updating all...")
for symbol in tqdm(data.main_table.symbol.unique()):
data.add_new_ohlc(symbol)
Expand Down

0 comments on commit 2150206

Please sign in to comment.