From b8bd89b2f2d62d618f25e1ff3c32aabab228861f Mon Sep 17 00:00:00 2001 From: "Tobias Wellnitz, DH1TW" Date: Mon, 5 Dec 2022 02:25:03 +0100 Subject: [PATCH] timezone field of qrz.com must be str and not int --- docs/source/changelog.rst | 9 ++++++++- pyhamtools/lookuplib.py | 2 +- pyhamtools/version.py | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index b533ff1..303c8cb 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,6 +1,14 @@ Changelog --------- +PyHamtools 0.8.2 +================ + +05. December 2022 + +* timezone field from QRZ.com casted to str instead of int + + PyHamtools 0.8.1 ================ @@ -9,7 +17,6 @@ PyHamtools 0.8.1 * removed debug print statement from QRZ.com queries - PyHamtools 0.8.0 ================ diff --git a/pyhamtools/lookuplib.py b/pyhamtools/lookuplib.py index 7d70d4c..35d86d9 100644 --- a/pyhamtools/lookuplib.py +++ b/pyhamtools/lookuplib.py @@ -935,7 +935,7 @@ class LookupLib(object): if root.Callsign.AreaCode: lookup[const.AREACODE] = int(root.Callsign.AreaCode.text) if root.Callsign.TimeZone: - lookup[const.TIMEZONE] = int(root.Callsign.TimeZone.text) + lookup[const.TIMEZONE] = root.Callsign.TimeZone.text if root.Callsign.GMTOffset: lookup[const.GMTOFFSET] = float(root.Callsign.GMTOffset.text) if root.Callsign.DST: diff --git a/pyhamtools/version.py b/pyhamtools/version.py index 3060626..9b6e845 100644 --- a/pyhamtools/version.py +++ b/pyhamtools/version.py @@ -1,3 +1,3 @@ -VERSION = (0, 8, 1) +VERSION = (0, 8, 2) __release__ = ''.join(['-.'[type(x) == int]+str(x) for x in VERSION])[1:] __version__ = '.'.join((str(VERSION[0]), str(VERSION[1])))