fixed qsl/lotw status being incorrectly shown (#278)

fixes #277
This commit is contained in:
classabbyamp
2020-10-28 21:03:41 -04:00
committed by GitHub
parent 786440edcb
commit f26a7af928
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- eQSL, paper QSL, and Logbook of the World status in `?qrz` sometimes being shown incorrectly.
## [2.4.1] - 2020-10-06
+3 -3
View File
@@ -146,15 +146,15 @@ def qrz_process_info(data: dict):
if address == "":
address = None
if "eqsl" in data:
eqsl = "Yes" if data["eqsl"] == 1 else "No"
eqsl = "Yes" if data["eqsl"] == "1" else "No"
else:
eqsl = "Unknown"
if "mqsl" in data:
mqsl = "Yes" if data["mqsl"] == 1 else "No"
mqsl = "Yes" if data["mqsl"] == "1" else "No"
else:
mqsl = "Unknown"
if "lotw" in data:
lotw = "Yes" if data["lotw"] == 1 else "No"
lotw = "Yes" if data["lotw"] == "1" else "No"
else:
lotw = "Unknown"