Additional logging
This commit is contained in:
parent
31f1495833
commit
69ec6d2732
@ -6,6 +6,8 @@ def start():
|
|||||||
if not owlboard_connector.check_connection():
|
if not owlboard_connector.check_connection():
|
||||||
print("Exiting")
|
print("Exiting")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
print("OwlBoard connection successful")
|
||||||
working_directory = os.getcwd()
|
working_directory = os.getcwd()
|
||||||
print("Working directory: ", working_directory)
|
print("Working directory: ", working_directory)
|
||||||
|
|
||||||
@ -26,9 +28,10 @@ def start():
|
|||||||
|
|
||||||
print(f"Found {len(results)} PIS Codes in documents")
|
print(f"Found {len(results)} PIS Codes in documents")
|
||||||
missing_pis = pis_find.run(results)
|
missing_pis = pis_find.run(results)
|
||||||
|
print(missing_pis)
|
||||||
get_detail = []
|
get_detail = []
|
||||||
for code in missing_pis:
|
for code in missing_pis:
|
||||||
print(code)
|
print(f"Fetching services with code: {code}")
|
||||||
services = owlboard_connector.get_services(code['headcode'], code['date'])
|
services = owlboard_connector.get_services(code['headcode'], code['date'])
|
||||||
get_detail.append({
|
get_detail.append({
|
||||||
'pis': code['pis'],
|
'pis': code['pis'],
|
||||||
|
Reference in New Issue
Block a user