plugin - adds gettowersinfo command to get all local data about a tower (from db)

This commit is contained in:
Sergi Delgado Segura
2020-04-23 12:53:16 +02:00
parent fd4241bfe3
commit 7b3bc6e6a8

View File

@@ -161,6 +161,13 @@ def list_towers(plugin):
return towers_info
@plugin.method("gettowerinfo", desc="List all towers registered towers.")
def get_tower_info(plugin, tower_id):
tower_info = plugin.wt_client.db_manager.load_tower_record(tower_id)
return {"id": tower_id, **tower_info}
@plugin.hook("commitment_revocation")
def add_appointment(plugin, **kwargs):
try: