Skip to content

Commit

Permalink
rm plot feature causing error
Browse files Browse the repository at this point in the history
  • Loading branch information
marctheshark3 committed Mar 5, 2024
1 parent a331934 commit e8baf95
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ def update_charts(wallet_address):
labels={'Time Found': 'Block Creation Date',
'effort': 'Effort', 'networkDifficulty': 'Network Difficulty'})

# adding a circle to the effort chart if you found the block
try:
my_wallet_blocks = block_df[block_df['my_wallet']]
except KeyError:
block_df['my_wallet'] = 'NO WALLET SUBMITTED'
my_wallet_blocks = block_df[block_df['my_wallet']]

block_df = block_df.drop(['my_wallet'], axis=1) # might need to change the name of this df
effort_chart.add_trace(go.Scatter(x=my_wallet_blocks['Time Found'], y=my_wallet_blocks['effort'], mode='markers',
marker=dict(color='Red', size=10, symbol='circle'), name='My Wallet'))
# # adding a circle to the effort chart if you found the block
# try:
# my_wallet_blocks = block_df[block_df['my_wallet']]
# except KeyError:
# block_df['my_wallet'] = 'NO WALLET SUBMITTED'
# my_wallet_blocks = block_df[block_df['my_wallet']]

# block_df = block_df.drop(['my_wallet'], axis=1) # might need to change the name of this df
# effort_chart.add_trace(go.Scatter(x=my_wallet_blocks['Time Found'], y=my_wallet_blocks['effort'], mode='markers',
# marker=dict(color='Red', size=10, symbol='circle'), name='My Wallet'))

# Network Difficulty Plot
net_diff_plot={'data': [go.Scatter(x=block_df['Time Found'], y=block_df['networkDifficulty'],
Expand Down

0 comments on commit e8baf95

Please sign in to comment.