slight changes

This commit is contained in:
Abigail Gold 2019-10-17 22:29:53 -04:00
parent 288160eb32
commit a0c224654b
No known key found for this signature in database
GPG Key ID: 80A676456AB6B045
1 changed files with 2 additions and 4 deletions

View File

@ -34,8 +34,6 @@ class QRZCog(commands.Cog):
qrz_file.write(self.key)
@commands.command(name="qrz", aliases=["call"])
async def _qrz_lookup(self, ctx: commands.Context, call: str):
'''Links to info about a callsign from QRZ.'''
if self.gs.keys.qrz_user == '' or self.gs.keys.qrz_pass == '':
await ctx.send(f'http://qrz.com/db/{call}')
return
@ -74,7 +72,7 @@ class QRZCog(commands.Cog):
if 'image' in resp_data:
embed.set_image(url=resp_data['image'])
data = await qrz_process_info(resp_data)
data = qrz_process_info(resp_data)
for title, val in data.items():
if val is not None:
@ -115,7 +113,7 @@ async def qrz_test_session(key: str):
raise ConnectionError(resp_session['Error'])
async def qrz_process_info(data: dict):
def qrz_process_info(data: dict):
if 'name' in data:
if 'fname' in data:
name = data['fname'] + ' ' + data['name']