mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-06 10:31:42 +00:00
Refactor of caching & data storage part 16 #118
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import logging
|
||||
import urllib.parse
|
||||
from datetime import timedelta
|
||||
from datetime import timedelta, datetime
|
||||
|
||||
import pytz
|
||||
import xmltodict
|
||||
from pyhamtools import callinfo
|
||||
from requests import ConnectTimeout, ReadTimeout
|
||||
@@ -80,6 +81,7 @@ class QRZ(APIQueryCallsignDataProvider):
|
||||
if "Callsign" in qrz_response:
|
||||
self.status = "OK"
|
||||
self.last_update_time = datetime.now(pytz.UTC)
|
||||
self.lookup_count += 1
|
||||
# Found data, convert it to our object and return it
|
||||
return self.qrz_response_to_callsign(callsign, qrz_response.get("Callsign"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user