mirror of
https://codeberg.org/mclemens/dxpager.git
synced 2024-10-01 17:46:11 -04:00
more descriptive print outs
This commit is contained in:
parent
de0f482277
commit
b5606ec7d7
22
dxpager.py
22
dxpager.py
@ -295,17 +295,19 @@ class DXPager():
|
|||||||
hash_entry = hashlib.md5(cf.encode())
|
hash_entry = hashlib.md5(cf.encode())
|
||||||
# If the DX station's entity hasn't been worked/confirmed via
|
# If the DX station's entity hasn't been worked/confirmed via
|
||||||
# LotW yet, the message will be sent to the dapnet API
|
# LotW yet, the message will be sent to the dapnet API
|
||||||
if hash_entry.hexdigest() not in self.cache.keys() and \
|
if hash_entry.hexdigest() not in self.cache.keys():
|
||||||
self.check_lotw_confirmed and self.config['lotw']['user'] != "N0CALL" \
|
if self.check_lotw_confirmed and self.config['lotw']['user'] != "N0CALL" \
|
||||||
and cty_details[2] not in self.confirmed_entities:
|
and cty_details[2] not in self.confirmed_entities:
|
||||||
response = requests.post(self.config['dapnet']['dapnet_url'], \
|
response = requests.post(self.config['dapnet']['dapnet_url'], \
|
||||||
data=dapnet_json, auth=HTTPBasicAuth(\
|
data=dapnet_json, auth=HTTPBasicAuth(\
|
||||||
self.config['dapnet']['dapnet_user'],\
|
self.config['dapnet']['dapnet_user'],\
|
||||||
self.config['dapnet']['dapnet_pass']))
|
self.config['dapnet']['dapnet_pass']))
|
||||||
self.cache[hash_entry.hexdigest()] = cf
|
self.cache[hash_entry.hexdigest()] = cf
|
||||||
print("!!! Sent to DAPNET: {} Response: {}".format(msg, response))
|
print("!!! Sent to DAPNET: {} Response: {}".format(msg, response))
|
||||||
|
else:
|
||||||
|
print(" Entity already confirmed: {}".format(msg))
|
||||||
else:
|
else:
|
||||||
print(" Not sent to DAPNET: {}".format(msg))
|
print(" Duplicate: {}".format(msg))
|
||||||
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
print(line)
|
print(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user