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