mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 06:34:19 +01:00
plugin - defines TowerSummary as object to improve readability of the code
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user