mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-26 17:58:40 -05:00
Merge pull request #128 from classabbyamp/qrz-incomplete-fix
qrz: handle addresses that are only whitespace
This commit is contained in:
commit
f0805d2095
@ -139,6 +139,9 @@ def qrz_process_info(data: dict):
|
|||||||
state = ''
|
state = ''
|
||||||
address = data.get('addr1', '') + '\n' + data.get('addr2', '') + \
|
address = data.get('addr1', '') + '\n' + data.get('addr2', '') + \
|
||||||
state + ' ' + data.get('zip', '')
|
state + ' ' + data.get('zip', '')
|
||||||
|
address = address.strip()
|
||||||
|
if address == '':
|
||||||
|
address = None
|
||||||
if 'eqsl' in data:
|
if 'eqsl' in data:
|
||||||
eqsl = 'Yes' if data['eqsl'] == 1 else 'No'
|
eqsl = 'Yes' if data['eqsl'] == 1 else 'No'
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user