plugin - defines TowerSummary as object to improve readability of the code

This commit is contained in:
Sergi Delgado Segura
2020-05-05 15:11:04 +02:00
parent cb4920b566
commit 8704dcf2b9
3 changed files with 28 additions and 23 deletions

View File

@@ -59,7 +59,7 @@ def add_appointment(plugin, tower_id, tower, appointment_dict, signature):
def send_appointment(tower_id, tower, appointment_dict, signature):
data = {"appointment": appointment_dict, "signature": signature}
add_appointment_endpoint = f"{tower.get('netaddr')}/add_appointment"
add_appointment_endpoint = f"{tower.netaddr}/add_appointment"
response = process_post_response(post_request(data, add_appointment_endpoint, tower_id))
tower_signature = response.get("signature")