mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-26 09:48:41 -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 = ''
|
||||
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