mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-26 17:58:40 -05:00
parent
781a3fa4dd
commit
ae67498e75
@ -71,6 +71,7 @@ class QRZCog(commands.Cog):
|
||||
embed.set_thumbnail(url=resp_data['image'])
|
||||
|
||||
data = qrz_process_info(resp_data)
|
||||
print(data)
|
||||
|
||||
for title, val in data.items():
|
||||
if val is not None:
|
||||
@ -139,6 +140,9 @@ def qrz_process_info(data: dict):
|
||||
state = ''
|
||||
address = data.get('addr1', '') + '\n' + data.get('addr2', '') + \
|
||||
state + ' ' + data.get('zip', '')
|
||||
address = address.strip()
|
||||
if address == '':
|
||||
address = None
|
||||
if 'eqsl' in data:
|
||||
eqsl = 'Yes' if data['eqsl'] == 1 else 'No'
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user