Skip to content

Commit

Permalink
Corrected outdated field in retrieving token image URL
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Sep 24, 2021
1 parent 01b7157 commit c25c566
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ def get_info(self):
info_id = 'slp/' + self.tokenid
else:
info_id = self.name.lower()
image_url = self.original_image_url
if self.thumbnail_image_url:
image_url = self.thumbnail_image_url
return {
'id': info_id,
'name': self.name,
'symbol': self.token_ticker,
'token_type': self.token_type,
'image_url': self.image_url
'image_url': image_url
}


Expand Down

0 comments on commit c25c566

Please sign in to comment.