fixing Fx logos

This commit is contained in:
Justin 2022-03-01 00:11:45 +08:00 committed by GitHub
parent b701706d87
commit 6ceb2e3645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1096,8 +1096,8 @@ class StockTicker():
try:
logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'currencies')
logo = Image.open(os.path.join(logos_path, symbol.lower() + '.png'))
bse = Image.open(os.path.join(logos_path, base.lower() + '.png'))
logo = Image.open(os.path.join(logos_path, symbol.upper() + '.png'))
bse = Image.open(os.path.join(logos_path, base.upper() + '.png'))
new_im = Image.new('RGB', (32, 32))
@ -1176,8 +1176,8 @@ class StockTicker():
try:
logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'currencies')
logo = Image.open(os.path.join(logos_path, symbol.lower() + '.png'))
bse = Image.open(os.path.join(logos_path, base.lower() + '.png'))
logo = Image.open(os.path.join(logos_path, symbol.upper() + '.png'))
bse = Image.open(os.path.join(logos_path, base.upper() + '.png'))
new_im = Image.new('RGB', (32, 32))