Skip to content

Commit

Permalink
Merge pull request #41 from nidhi2026/cbranch
Browse files Browse the repository at this point in the history
fix incorrect data parsing for trending cryptocurrency
  • Loading branch information
Harish-2003 authored Oct 6, 2024
2 parents 5b0306b + 91a4e8d commit 2b93620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async def show_crypto_list(update: Update, context: ContextTypes.DEFAULT_TYPE, c
for i in range(0, len(cryptos), 2):
row = []
for crypto in cryptos[i:i+2]:
crypto = crypto.get('item', crypto)
name = crypto.get('name', 'Unknown')
symbol = crypto.get('symbol', 'Unknown')
crypto_id = crypto.get('id', 'unknown')
Expand Down

0 comments on commit 2b93620

Please sign in to comment.